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.
 
Back
Top