problem with name created when control is rendered.

S

Sean Gamino

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
 
J

John Saunders

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top