Click here to Skip to main content
14,605,537 members
   

ASP.NET

 
AnswerRe: How can I get the local machine's IP address in a Test.aspx form Pin
rakesh_choudhury16-Sep-09 21:16
Memberrakesh_choudhury16-Sep-09 21:16 
QuestionHow to do this configuration programatically Pin
vishwjeet16-Sep-09 10:42
Membervishwjeet16-Sep-09 10:42 
AnswerRe: How to do this configuration programatically Pin
Christian Graus16-Sep-09 11:11
mveChristian Graus16-Sep-09 11:11 
AnswerRe: How to do this configuration programatically Pin
Not Active16-Sep-09 11:14
mentorNot Active16-Sep-09 11:14 
AnswerRe: How to do this configuration programatically Pin
sashidhar16-Sep-09 18:33
Membersashidhar16-Sep-09 18:33 
GeneralRe: How to do this configuration programatically Pin
vishwjeet16-Sep-09 19:16
Membervishwjeet16-Sep-09 19:16 
AnswerRe: How to do this configuration programatically Pin
vishwjeet17-Sep-09 0:10
Membervishwjeet17-Sep-09 0:10 
QuestionUpdateModel vs Request.Form.. Pin
Quake2Player16-Sep-09 10:02
MemberQuake2Player16-Sep-09 10: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 9:46
MemberAndyASPVB16-Sep-09 9:46 
GeneralRe: Unable to Add Service Reference to Consumer Project in ASP.Net Pin
carlosbourque16-Sep-09 11:26
Membercarlosbourque16-Sep-09 11:26 
GeneralRe: Unable to Add Service Reference to Consumer Project in ASP.Net Pin
AndyASPVB16-Sep-09 12:15
MemberAndyASPVB16-Sep-09 12:15 
GeneralRe: Unable to Add Service Reference to Consumer Project in ASP.Net Pin
carlosbourque17-Sep-09 9:50
Membercarlosbourque17-Sep-09 9:50 
Questiondeploying server without visual studio and sql server -- only framework 3.5 Pin
vishwjeet16-Sep-09 8:38
Membervishwjeet16-Sep-09 8:38 
AnswerRe: deploying server without visual studio and sql server -- only framework 3.5 Pin
Manas Bhardwaj16-Sep-09 8:48
professionalManas Bhardwaj16-Sep-09 8:48 
GeneralRe: deploying server without visual studio and sql server -- only framework 3.5 Pin
vishwjeet16-Sep-09 8:51
Membervishwjeet16-Sep-09 8:51 
GeneralRe: deploying server without visual studio and sql server -- only framework 3.5 Pin
vishwjeet16-Sep-09 9:13
Membervishwjeet16-Sep-09 9:13 
GeneralRe: deploying server without visual studio and sql server -- only framework 3.5 Pin
Abhishek Sur16-Sep-09 9:43
professionalAbhishek Sur16-Sep-09 9:43 
QuestionLosing Session Variables within Frames Pin
mjc22516-Sep-09 8:33
Membermjc22516-Sep-09 8:33 
AnswerRe: Losing Session Variables within Frames Pin
Steve van Niman16-Sep-09 12:21
MemberSteve van Niman16-Sep-09 12:21 
GeneralRe: Losing Session Variables within Frames Pin
mjc22516-Sep-09 14:19
Membermjc22516-Sep-09 14:19 
GeneralRe: Losing Session Variables within Frames Pin
butchzn1-Oct-09 20:48
Memberbutchzn1-Oct-09 20:48 
QuestionFooterTemplate in Gridview. Pin
dayakar_dn16-Sep-09 8:16
Memberdayakar_dn16-Sep-09 8:16 
AnswerRe: FooterTemplate in Gridview. Pin
Muhammad Mazhar17-Sep-09 9:22
MemberMuhammad Mazhar17-Sep-09 9:22 
QuestionProblem with JavaScript Pin
phani2548516-Sep-09 7:02
Memberphani2548516-Sep-09 7:02 
AnswerRe: Problem with JavaScript Pin
Manas Bhardwaj16-Sep-09 8:53
professionalManas Bhardwaj16-Sep-09 8: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.