Click here to Skip to main content
15,791,740 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How can I get the local machine's IP address in a Test.aspx form Pin
rakesh_choudhury16-Sep-09 22:16
rakesh_choudhury16-Sep-09 22:16 
QuestionHow to do this configuration programatically Pin
vishwjeet16-Sep-09 11:42
vishwjeet16-Sep-09 11:42 
AnswerRe: How to do this configuration programatically Pin
Christian Graus16-Sep-09 12:11
protectorChristian Graus16-Sep-09 12:11 
AnswerRe: How to do this configuration programatically Pin
Not Active16-Sep-09 12:14
mentorNot Active16-Sep-09 12:14 
AnswerRe: How to do this configuration programatically Pin
sashidhar16-Sep-09 19:33
sashidhar16-Sep-09 19:33 
GeneralRe: How to do this configuration programatically Pin
vishwjeet16-Sep-09 20:16
vishwjeet16-Sep-09 20:16 
AnswerRe: How to do this configuration programatically Pin
vishwjeet17-Sep-09 1:10
vishwjeet17-Sep-09 1:10 
QuestionUpdateModel vs Request.Form.. Pin
Quake2Player16-Sep-09 11:02
Quake2Player16-Sep-09 11:02 
Hi,

Is there a reason one would prefere Request.Form instead of the UpdateModel(..)?

Another question:
If one haves a class (generated by linq to sql) with two properties like:
SomethingId,
Something

Being SomethingId an int and Something the object,

For example:

Table Messages {...,FromId, ..}
is mapped to
Class Message {...,FromId, From, ...}

Being From an object of lets say type User

So, my question is how is the procedure to edit these kind of objects if I'm using Request.Form?

Between A and B:

Way A:
1. Retrieve the object obj being edited from the repository, obj = objsRepository.RetrieveById(..)
2. x = Request.Form["SomethingId"]
3. obj.SomethingId = x

vs

Way B:

1. Retrieve the object obj being edited from the repository, obj = objsRepository.RetrieveById(..)
2. x = Request.Form["SomethingId"]
3. xAsObject = somethingsRepository.RetrieveById(x)
4. obj.Something = xAsObject


Which one is the correct way ??
(Of course in my form I wont have "objects".. just strings)
QuestionUnable to Add Service Reference to Consumer Project in ASP.Net Pin
AndyASPVB16-Sep-09 10:46
AndyASPVB16-Sep-09 10:46 
GeneralRe: Unable to Add Service Reference to Consumer Project in ASP.Net Pin
carlosbourque16-Sep-09 12:26
carlosbourque16-Sep-09 12:26 
GeneralRe: Unable to Add Service Reference to Consumer Project in ASP.Net Pin
AndyASPVB16-Sep-09 13:15
AndyASPVB16-Sep-09 13:15 
GeneralRe: Unable to Add Service Reference to Consumer Project in ASP.Net Pin
carlosbourque17-Sep-09 10:50
carlosbourque17-Sep-09 10:50 
Questiondeploying server without visual studio and sql server -- only framework 3.5 Pin
vishwjeet16-Sep-09 9:38
vishwjeet16-Sep-09 9:38 
AnswerRe: deploying server without visual studio and sql server -- only framework 3.5 Pin
Manas Bhardwaj16-Sep-09 9:48
professionalManas Bhardwaj16-Sep-09 9:48 
GeneralRe: deploying server without visual studio and sql server -- only framework 3.5 Pin
vishwjeet16-Sep-09 9:51
vishwjeet16-Sep-09 9:51 
GeneralRe: deploying server without visual studio and sql server -- only framework 3.5 Pin
vishwjeet16-Sep-09 10:13
vishwjeet16-Sep-09 10:13 
GeneralRe: deploying server without visual studio and sql server -- only framework 3.5 Pin
Abhishek Sur16-Sep-09 10:43
professionalAbhishek Sur16-Sep-09 10:43 
QuestionLosing Session Variables within Frames Pin
mjc22516-Sep-09 9:33
mjc22516-Sep-09 9:33 
AnswerRe: Losing Session Variables within Frames Pin
Steve van Niman16-Sep-09 13:21
Steve van Niman16-Sep-09 13:21 
GeneralRe: Losing Session Variables within Frames Pin
mjc22516-Sep-09 15:19
mjc22516-Sep-09 15:19 
GeneralRe: Losing Session Variables within Frames Pin
butchzn1-Oct-09 21:48
butchzn1-Oct-09 21:48 
QuestionFooterTemplate in Gridview. Pin
dayakar_dn16-Sep-09 9:16
dayakar_dn16-Sep-09 9:16 
AnswerRe: FooterTemplate in Gridview. Pin
Muhammad Mazhar17-Sep-09 10:22
Muhammad Mazhar17-Sep-09 10:22 
QuestionProblem with JavaScript Pin
phani2548516-Sep-09 8:02
phani2548516-Sep-09 8:02 
AnswerRe: Problem with JavaScript Pin
Manas Bhardwaj16-Sep-09 9:53
professionalManas Bhardwaj16-Sep-09 9:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.