hidden field name contains a .NET string addon. how do i change it ? [modified]
-
hello, when i put a hidden field in a form and run it i look at the page source and see the following :
<input type="hidden" name="ctl00$ContentPlaceHolder1$UserName" id="ctl00_ContentPlaceHolder1_UserName" value="sasa" />
<input type="hidden" name="ctl00$ContentPlaceHolder1$PassWord" id="ctl00_ContentPlaceHolder1_PassWord" value="tttyyy" />.
i want the names to be UserName and PassWord and not with the 'ctl00$ContentPlaceHolder1$' before them how do i change it ? those fields will not be posted back to the page but will go to another url which is not related to my project. i added the 'postbackurl=' to the button click btw , i dont use simple html hidden tags because their values are set from a database tnx, avi
modified on Saturday, May 16, 2009 4:18 AM
-
hello, when i put a hidden field in a form and run it i look at the page source and see the following :
<input type="hidden" name="ctl00$ContentPlaceHolder1$UserName" id="ctl00_ContentPlaceHolder1_UserName" value="sasa" />
<input type="hidden" name="ctl00$ContentPlaceHolder1$PassWord" id="ctl00_ContentPlaceHolder1_PassWord" value="tttyyy" />.
i want the names to be UserName and PassWord and not with the 'ctl00$ContentPlaceHolder1$' before them how do i change it ? those fields will not be posted back to the page but will go to another url which is not related to my project. i added the 'postbackurl=' to the button click btw , i dont use simple html hidden tags because their values are set from a database tnx, avi
modified on Saturday, May 16, 2009 4:18 AM
-
you can just user html input ,not asp.net input ,if you change the name the server will can not find this input.