Java Script in Master Page

  • Thread starter Thread starter y2rottem
  • Start date Start date
Y

y2rottem

Hi all,
I am trying, to use form fields and a Master page:
I have a form built within the <asp:contentpage>. trying to read its
fields using JavaScript I get errors.viewing the generated html source
i realized that all the controls got a different name
"ctl00...<original name>".
how should i read/set the values using java script?
 
Use server side property "ClientID" of control to get the actual id of
control, then use that id to access your control in client side function.
 
hi sarvana,
do u happen to have a code example?
yaniv said:
Use server side property "ClientID" of control to get the actual id of
control, then use that id to access your control in client side function.
 

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

Back
Top