problem with name created when control is rendered.

Discussion in 'ASP .Net Web Controls' started by Sean Gamino, Jul 21, 2003.

  1. Sean Gamino

    Sean Gamino Guest

    Hello,
    I am creating a html server control that is in a datalist. I need to access
    this controls value on the client via javascript but the name is being
    overwritten with a unique value generated by ASP.Net. This makes it rather
    impossible to access the control in javascript because I do not know what
    the name of the control is.

    Is there a way I can keep the original name that I assign it?

    Thanks,
    Sean Gamino
     
    Sean Gamino, Jul 21, 2003
    #1
    1. Advertising

  2. You're better off telling your JavaScript code what the unique ID of the
    control actually is.

    If your control is in a datalist, won't there be multiple copies of it? In
    that case, you _need_ unique IDs.

    --
    John Saunders
    Internet Engineer



    "Sean Gamino" <> wrote in message
    news:...
    > Hello,
    > I am creating a html server control that is in a datalist. I need to

    access
    > this controls value on the client via javascript but the name is being
    > overwritten with a unique value generated by ASP.Net. This makes it

    rather
    > impossible to access the control in javascript because I do not know what
    > the name of the control is.
    >
    > Is there a way I can keep the original name that I assign it?
    >
    > Thanks,
    > Sean Gamino
    >
    >
     
    John Saunders, Jul 21, 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. Sean Gamino
    Replies:
    1
    Views:
    272
    John Saunders
    Jul 21, 2003
  2. Leeor Chernov
    Replies:
    2
    Views:
    793
    Leeor Chernov
    Oct 16, 2005
  3. Replies:
    3
    Views:
    368
  4. Matt Sokol
    Replies:
    2
    Views:
    388
    Theo Tillotson
    Aug 7, 2003
  5. TJ
    Replies:
    4
    Views:
    366
    Steven Cheng[MSFT]
    Apr 7, 2006
Loading...

Share This Page