Server control value is not changing in clientside
-
I have one server control in my ASPX page. I am changing the value of this text box in Javascript. But when the page is posted back it is not taking the values which I assigned in the client side code. Could anybody help me on this. Thanks in Advance, Pothiraj Hard work never fails
-
I have one server control in my ASPX page. I am changing the value of this text box in Javascript. But when the page is posted back it is not taking the values which I assigned in the client side code. Could anybody help me on this. Thanks in Advance, Pothiraj Hard work never fails
-
Are you setting the (original) value again in page-load or similar, which could overwrite the submitted value? --------------------------- 127.0.0.1 - Sweet 127.0.0.1
I am setting the value only once in the page-load by checking IsPostBack condition as false.In the clientside only I am changing the value of that control.But when that page is posted back, it is not retaining the values which I assigned in the client side. Waiting for ur reply,
-
I am setting the value only once in the page-load by checking IsPostBack condition as false.In the clientside only I am changing the value of that control.But when that page is posted back, it is not retaining the values which I assigned in the client side. Waiting for ur reply,
If you are changing the value clientside - are you then sure you get it submitted on postback? Try checking the Form object as the first thing on page load, and see if the value is "there" or not. If it isn't, then try making an input field (hidden or what not) and placing the value there, and then pulling it out again. (sorry - if I don't make sences, but I'm not that terrible experienced (yet) ;)) --------------------------- 127.0.0.1 - Sweet 127.0.0.1