i am having two textboxes and a label in a gridview control, i am adding a javascript function to the second textbox onblur event attribute and display the result in the label, the function works fine and result is displayed in the label, but when i am saving the grid data into the database, the label is returned 0 or empty, but i am able to see the value , how to overcome this.
thanks and regards
Your label is not persisted in the ViewState because it does not consists as a ‘Form’ control. You could use a hidden Textbox to accomplish that, there are probably better ways tho.