B
Bob
I am trying to obtain values of a submitted form when the form is inside a
content placeholder via a master page. For example:
<asp:content contentplaceholderid="contentMain" runat="server">
...
<asp:TextBox runat="server" id="FirstAndLastName"></asp:TextBox>
...
However, the identifier for the form element in Request.Form after the form
is submitted to another page is:
ctl00%24contentMain%24FirstAndLastName
Is there a way to prevent form identifers from prefacing the content
placeholder id? If not, on the form receiving page, how do I obtain the
field? Request.Form["FirstAndLastName"] doesn't work, I am required to
prepend the ctl100$contentMain$ stuff.
Thanks
content placeholder via a master page. For example:
<asp:content contentplaceholderid="contentMain" runat="server">
...
<asp:TextBox runat="server" id="FirstAndLastName"></asp:TextBox>
...
However, the identifier for the form element in Request.Form after the form
is submitted to another page is:
ctl00%24contentMain%24FirstAndLastName
Is there a way to prevent form identifers from prefacing the content
placeholder id? If not, on the form receiving page, how do I obtain the
field? Request.Form["FirstAndLastName"] doesn't work, I am required to
prepend the ctl100$contentMain$ stuff.
Thanks