it is not working within
I have the following code:
<asp:content runat="server" id="BodyContent" contentplaceholderid="MainContent" xmlns:asp="#unknown">
<asp:label id="Labelinput" runat="server" associatedcontrolid="datepicker">Input Date:
<input type="text" id="datepicker" name="datepicker" runat="server" clientidmode="static" onchange="mydateChg();" />
<asp:textbox id="TextInputD" runat="server" width="111px" maxlength="10" visible="True" enabled="False" autopostback="True">
<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Save" width="80px">
from code behing, I have the following:
protected void Button2_Click(object sender, EventArgs e)
{
string strValue = Page.Request.Form["datepicker"];
Response.Write(strValue);
}
this is retruning null value:
Page.Request.Form["datepicker"];
if I do the same from another page that does not have
<asp:content runat="server" id="BodyContent" contentplaceholderid="MainContent" xmlns:asp="#unknown">
I can get the value of the input control OK
any help on this?