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

Discussion in 'ASP .Net' started by nick, Dec 15, 2004.

  1. nick

    nick Guest

    Is possible for server side code to access the text of <asp:label> changed
    by client side javascript code?
     
    nick, Dec 15, 2004
    #1
    1. Advertising

  2. nick

    Saravana Guest

    Saravana, Dec 15, 2004
    #2
    1. Advertising

  3. 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

    "nick" <> wrote in message
    news:%...
    > Is possible for server side code to access the text of <asp:label> changed
    > by client side javascript code?
    >
    >
     
    William F. Robertson, Jr., Dec 15, 2004
    #3
  4. 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

    "nick" <> wrote in message
    news:%...
    > Is possible for server side code to access the text of <asp:label> changed
    > by client side javascript code?
    >
    >
     
    Eliyahu Goldin, Dec 15, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Saunders
    Replies:
    0
    Views:
    495
    John Saunders
    Aug 29, 2003
  2. Valerian John
    Replies:
    6
    Views:
    5,178
    Valerian John
    May 17, 2004
  3. Server Control
    Replies:
    4
    Views:
    785
  4. nick
    Replies:
    1
    Views:
    227
    Victor Garcia Aprea [MVP]
    Dec 23, 2004
  5. Knut Krueger
    Replies:
    8
    Views:
    325
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page