javascript problem asp.net

Discussion in 'ASP .Net' started by pl, Oct 17, 2003.

  1. pl

    pl Guest

    1) build drop down list on server
    2) manipulating lists on the client using javascript
    3) when postback to server, lost the values that were
    manipulated on the client.
    4) how we defined to client js
    cboInternalOrigin.Attributes.Add
    ("OnBlur", "CheckRequiredField()")
    4) why ? is there another way to define?
    pl, Oct 17, 2003
    #1
    1. Advertising

  2. pl

    Jalil Vaidya Guest

    If you are adding attributes to the dropdown control using client side
    scripting, they will be lost on server side because they are not part of
    post data. Either add the data to the value attribute and make sure the
    item is selected when submitting the form or add the data to the value
    of a hidden element which you can access from the server side on postback.

    Jalil Vaidya

    pl wrote:

    > 1) build drop down list on server
    > 2) manipulating lists on the client using javascript
    > 3) when postback to server, lost the values that were
    > manipulated on the client.
    > 4) how we defined to client js
    > cboInternalOrigin.Attributes.Add
    > ("OnBlur", "CheckRequiredField()")
    > 4) why ? is there another way to define?
    Jalil Vaidya, Oct 18, 2003
    #2
    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. David Virgil Hobbs
    Replies:
    0
    Views:
    511
    David Virgil Hobbs
    Jan 6, 2004
  2. Ben
    Replies:
    3
    Views:
    1,124
  3. Fredrik Rodin
    Replies:
    2
    Views:
    4,947
    Fredrik Rodin
    Nov 4, 2005
  4. Andrea Raimondi
    Replies:
    1
    Views:
    448
  5. Amelyan
    Replies:
    2
    Views:
    139
    Amelyan
    Apr 25, 2005
Loading...

Share This Page