You are updating Label value from JavaScript that is not get from code behind when you make postback.
So page has only Label's Default value in its viewstate so when control rebuilt from viewstate then its default value will displayed.
Try to change value of Label from Code behind and then see. You will find your result,
JavaScript affect only UI for display result, Value changed by JavaScript can't get from Code behind Unless you use Ajax Method or Page Method
Enjoy...
http://ajaypatelfromsanthal.blogspot.in
Balajikcp8, if this helps please login to Mark As Answer. |
Reply | Alert Moderator