Click here to Skip to main content
15,906,574 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: DataGrid inconsistent after sorting Pin
Allad26-Jun-07 4:30
Allad26-Jun-07 4:30 
QuestionIf...Then... Else based upon QueryString Pin
sduffield25-Jun-07 11:05
sduffield25-Jun-07 11:05 
AnswerRe: If...Then... Else based upon QueryString Pin
Fred_Smith25-Jun-07 11:58
Fred_Smith25-Jun-07 11:58 
GeneralRe: If...Then... Else based upon QueryString Pin
sduffield26-Jun-07 3:13
sduffield26-Jun-07 3:13 
GeneralRe: If...Then... Else based upon QueryString Pin
Fred_Smith26-Jun-07 3:15
Fred_Smith26-Jun-07 3:15 
Questionjavascript form.reset() issue after the postback of an asp.net page Pin
Ken.A25-Jun-07 8:11
Ken.A25-Jun-07 8:11 
AnswerRe: javascript form.reset() issue after the postback of an asp.net page Pin
badgrs25-Jun-07 9:57
badgrs25-Jun-07 9:57 
GeneralRe: javascript form.reset() issue after the postback of an asp.net page Pin
Ken.A25-Jun-07 10:24
Ken.A25-Jun-07 10:24 
badgrs wrote:
Why are you using javascript for the reset in the first place? Why not use ?


hi ... the reason i'm not using the type="reset" is because i also call another js Page_ClientValidate(); in order to clear any eventual error msg previously displayed in case the user has done some bad format input, other than this i would use your idea.

badgrs wrote:
Since the values are 'hard-coded' (in the html) upon a postback, javascript is your only option.


ow, that's what i was afraid of ... but if js is my only option, this leads to the following conclusion: for asp.net pages it's useless to call form.reset or the input type="reset" tag since it will only work before postbacks, plus i will also have to manually track all forms elements i'm eventually using in the webpage, not just input fields, but select fields, option, etc as well

what is important to notice is that the built-in form[].reset() goal is really to 'reset' form values to its original values and NOT to clear all form fields, unless the initial values are empty ones!!!

but then a doubt raises: isn't asp.net breaking the rules by maintaining form field values after a postback? one of the great things when asp.net brought was keeping form values after a postback, but now i can't use one of the most basic things in html???

»»» KenA

GeneralRe: javascript form.reset() issue after the postback of an asp.net page Pin
Vasudevan Deepak Kumar25-Jun-07 22:06
Vasudevan Deepak Kumar25-Jun-07 22:06 
GeneralRe: javascript form.reset() issue after the postback of an asp.net page Pin
Vasudevan Deepak Kumar25-Jun-07 22:04
Vasudevan Deepak Kumar25-Jun-07 22:04 
GeneralRe: javascript form.reset() issue after the postback of an asp.net page Pin
Ken.A26-Jun-07 5:54
Ken.A26-Jun-07 5:54 
GeneralRe: javascript form.reset() issue after the postback of an asp.net page Pin
Ken.A26-Jun-07 9:56
Ken.A26-Jun-07 9:56 
Questiontransparency on IE Pin
xxrono25-Jun-07 3:54
xxrono25-Jun-07 3:54 
AnswerRe: transparency on IE Pin
Vasudevan Deepak Kumar25-Jun-07 5:28
Vasudevan Deepak Kumar25-Jun-07 5:28 
AnswerRe: transparency on IE Pin
Shog925-Jun-07 6:58
sitebuilderShog925-Jun-07 6:58 
QuestionStylesheet Problem in IE 7 Pin
Sachin Pimpale25-Jun-07 3:35
Sachin Pimpale25-Jun-07 3:35 
AnswerRe: Stylesheet Problem in IE 7 Pin
Vasudevan Deepak Kumar25-Jun-07 5:27
Vasudevan Deepak Kumar25-Jun-07 5:27 
QuestionImage caching, IE7 problem! Pin
ErikZ25-Jun-07 3:05
ErikZ25-Jun-07 3:05 
AnswerRe: Image caching, IE7 problem! Pin
Vasudevan Deepak Kumar25-Jun-07 5:26
Vasudevan Deepak Kumar25-Jun-07 5:26 
GeneralRe: Image caching, IE7 problem! Pin
ErikZ25-Jun-07 22:46
ErikZ25-Jun-07 22:46 
QuestionCode problems [modified] Pin
matjame25-Jun-07 2:37
matjame25-Jun-07 2:37 
AnswerRe: Code problems Pin
PrakashBhaskar25-Jun-07 2:44
PrakashBhaskar25-Jun-07 2:44 
GeneralRe: Code problems Pin
matjame25-Jun-07 2:51
matjame25-Jun-07 2:51 
GeneralRe: Code problems Pin
PrakashBhaskar25-Jun-07 3:02
PrakashBhaskar25-Jun-07 3:02 
GeneralRe: Code problems Pin
matjame25-Jun-07 3:06
matjame25-Jun-07 3:06 

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.