hai i new to using masterpage when i use this code any of page in my website javascript code appears how to overcome this problem very urgent
<script language=javascript>function test()
{
alert(document.getElementById("editName").value));
}
script>but without using masterpage this code working perfectly
Siva PrakasPosted Feb 18, 2008, 1:34 AM
"ctl00$ContentPlaceHolder1$editName" as ID and comeout from the pbm
Yogesh VermaPosted Feb 18, 2008, 12:14 AM
Try this:
document.getElementById(
"<%=Controlname.ClientID %>").value;or
document.getElementById(
'ctl00_ContentPlaceHolder1_Control name').valueEnjoy programming...
Siva PrakasPosted Feb 17, 2008, 11:24 PM
RakrusPosted Feb 17, 2008, 11:19 PM
By using MasterPages The control names are renderd differently,The control id is prefixed by ctl01_ctl02....
So check the rendered control id and use it.
Thanks