Click here to Skip to main content
15,920,513 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: DataGrid inconsistent after sorting Pin
Vasudevan Deepak Kumar26-Jun-07 2:09
Vasudevan Deepak Kumar26-Jun-07 2:09 
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 
It resets your values after the postback since the html returned has value="your value" for each field, so the reset uses these values (which are empty on the first request)...but anyway you already got that far.

Why are you using javascript for the reset in the first place? Why not use ?

Since the values are 'hard-coded' (in the html) upon a postback, javascript is your only option. Heres a simple function that should work:
<br />
function ResetForm()<br />
{<br />
var inputs = document.getElementsByTagName("input");<br />
for(var i = 0; i < inputs.length; i++)<br />
{<br />
inputs[i].value = "";<br />
}<br />
}<br />

I haven't tested the function and it will only reset input elements (ie not select).
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 
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 

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.