Click here to Skip to main content
15,886,110 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWhy does one session variable store multiple values? Pin
Tomz_KV14-Apr-09 6:10
Tomz_KV14-Apr-09 6:10 
AnswerRe: Why does one session variable store multiple values? Pin
Yusuf14-Apr-09 9:22
Yusuf14-Apr-09 9:22 
GeneralRe: Why does one session variable store multiple values? Pin
Tomz_KV14-Apr-09 9:41
Tomz_KV14-Apr-09 9:41 
AnswerRe: Why does one session variable store multiple values? Pin
Tomz_KV15-Apr-09 3:31
Tomz_KV15-Apr-09 3:31 
QuestionDetecting changes on a page Pin
dptalt14-Apr-09 4:44
dptalt14-Apr-09 4:44 
AnswerRe: Detecting changes on a page Pin
binarymax14-Apr-09 5:32
binarymax14-Apr-09 5:32 
GeneralRe: Detecting changes on a page Pin
dptalt14-Apr-09 5:44
dptalt14-Apr-09 5:44 
GeneralRe: Detecting changes on a page Pin
binarymax14-Apr-09 6:07
binarymax14-Apr-09 6:07 
Well I dont know enough about your situation to make that call. You could even do it at the database level if you are using stored procedures, but in most cases thats probably not a good idea.

Also what are you trying to accomplish specifically? If you dont want the user changing stuff why not just make the fields readonly?

If you have a specific reason why not and in a situation where you are already loading data from a database during a request, keeping it in a session object, and then showing that data to a user in a textbox, then on postback you will already have that data on your server and won't need to go back to the database to do your comparison, the original data is already there on the server. Personally I think it would be best practice to check it on the server. Since either way you are going to be testing equality on some field (be it a string or a changed-flag).

Are you validating any other fields on the page with javascript? Then you could lump your comparison in there with the validation, but then you'd need to create hidden fields and it might be too complex and not worth the small performance gain you would get when substituting a string compare with the changed field bool.

Sorry for rambling Smile | :)
GeneralRe: Detecting changes on a page Pin
dptalt14-Apr-09 6:52
dptalt14-Apr-09 6:52 
GeneralRe: Detecting changes on a page Pin
binarymax14-Apr-09 9:20
binarymax14-Apr-09 9:20 
AnswerRe: Detecting changes on a page Pin
Yusuf14-Apr-09 9:24
Yusuf14-Apr-09 9:24 
QuestionVS2008 SOAP Client - losing Session problem [modified] Pin
Vozzie214-Apr-09 4:44
Vozzie214-Apr-09 4:44 
AnswerRe: VS2008 SOAP Client - losing Session problem Pin
anbam15-Nov-10 22:54
anbam15-Nov-10 22:54 
QuestionScroll bars of TreeView should be invisble when they are disabled by using CSS class Pin
indian14314-Apr-09 3:35
indian14314-Apr-09 3:35 
AnswerRe: Scroll bars of TreeView should be invisble when they are disabled by using CSS class Pin
binarymax14-Apr-09 3:41
binarymax14-Apr-09 3:41 
GeneralRe: Scroll bars of TreeView should be invisble when they are disabled by using CSS class Pin
indian14314-Apr-09 19:45
indian14314-Apr-09 19:45 
QuestionThread locking and ASP.NET [modified] Pin
binarymax14-Apr-09 3:08
binarymax14-Apr-09 3:08 
Questionpotential solutions for recording video from client webcam Pin
hardboy11114-Apr-09 2:49
hardboy11114-Apr-09 2:49 
Questionsql server login problem Pin
nikhil123414-Apr-09 2:32
nikhil123414-Apr-09 2:32 
AnswerRe: sql server login problem Pin
Colin Angus Mackay14-Apr-09 2:59
Colin Angus Mackay14-Apr-09 2:59 
AnswerRe: sql server login problem Pin
Greg Chelstowski14-Apr-09 3:00
Greg Chelstowski14-Apr-09 3:00 
GeneralRe: sql server login problem Pin
Colin Angus Mackay14-Apr-09 3:05
Colin Angus Mackay14-Apr-09 3:05 
GeneralRe: sql server login problem Pin
Greg Chelstowski14-Apr-09 3:10
Greg Chelstowski14-Apr-09 3:10 
QuestionSession Problem Pin
pra.chaudhari14-Apr-09 2:18
pra.chaudhari14-Apr-09 2:18 
AnswerRe: Session Problem Pin
Abhijit Jana14-Apr-09 2:45
professionalAbhijit Jana14-Apr-09 2:45 

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.