server side code access the text of <asp:label> changed by client-side javascript code?

  • Thread starter Thread starter nick
  • Start date Start date
N

nick

Is possible for server side code to access the text of <asp:label> changed
by client side javascript code?
 
No, you will need to double the new value into a hidden text field, or some
other postable field, and then look for the change of the text through the
Request.Forms["txtHidden1"] property on postback to determine if the text
has changed.

bill
 
If you mean accessing the text via the label's Text property, the answer is
no.

You can pass the changed text to the server in one of the common ways of
passing values from client to server, for example in a hidden field.

Eliyahu
 
Back
Top