JavaScript and Custom Controls

A

Arulraja

Hi,

I have a custom control(Child Control). Basically it renders a table.
It contains a Button Control. During the Click event of the Button
control I want to validate the User Inputs in the server side, if the
validation fails I put the value into the Hidden Input control.

Now, Onthe window_onload event I want to access the Hidden Input
field. But the problem is, even if I assign the IDto the Hidden Input
control at runtime, the HTML shows a differnt ID(it's adding the Child
control name_ctl7 soon). Because of this I am not able to use the
Javascript document.getelementbyId() function to the value.

Any help will be appreciated.

Thanks
Arul
 

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,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top