Passing a text string from the server side to a client side function

Discussion in 'ASP .Net' started by ken busse, Nov 24, 2003.

  1. ken busse

    ken busse Guest

    I would like to be able to write a string value to a
    variable on the server side and have it passed to the
    client side for display in an alert box.
    I've tried writing to a Server control label and reading
    it in client side script but can't get it working.
    I've tried passing a form variable that has the residing
    label but that doesn't work.
    Do you have any suggestions?
    ken busse, Nov 24, 2003
    #1
    1. Advertising

  2. ken busse

    Raj Guest

    Well You can store the string message in a Hidden
    Field . This hidden variable can be access using a
    scripts .

    HTH
    Raj

    >-----Original Message-----
    >I would like to be able to write a string value to a
    >variable on the server side and have it passed to the
    >client side for display in an alert box.
    >I've tried writing to a Server control label and reading
    >it in client side script but can't get it working.
    >I've tried passing a form variable that has the residing
    >label but that doesn't work.
    >Do you have any suggestions?
    >
    >.
    >
    Raj, Nov 24, 2003
    #2
    1. Advertising

  3. ken busse

    MSFT Guest

    MSFT, Nov 24, 2003
    #3
    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. Kevin Spencer
    Replies:
    1
    Views:
    312
    =?Utf-8?B?Sm9yZWxs?=
    Jan 29, 2004
  2. Matt Howeson
    Replies:
    2
    Views:
    458
    =?Utf-8?B?Sm9yZWxs?=
    Jan 30, 2004
  3. Mike Fellows
    Replies:
    8
    Views:
    433
    Eliyahu Goldin
    Jun 29, 2004
  4. =?Utf-8?B?THluZXJz?=
    Replies:
    10
    Views:
    1,588
    sirfunusa
    Apr 3, 2006
  5. Replies:
    4
    Views:
    7,291
    Eliyahu Goldin
    Jul 13, 2006
Loading...

Share This Page