在asp.net(c#)如何取input的值
设置了一个input控件,使得点击input弹出日期选择框aspx:<inputtype="text"style="border:1pxsolid#999;"id="ti...
设置了一个input控件,使得点击input弹出日期选择框
aspx:
<input type="text" style="border:1px solid #999;" id="time" runat="server" onclick="fPopCalendar(event,this,this)" onfocus="this.select()" readonly="readonly" />
aspx.cs:
protected void Button1_Click(object sender, EventArgs e)
{
RecordBLL recordBLL = new RecordBLL();
Record record = new Model.Record();
record.出生年月 = Request.Form["time"].Trim();
//上面一行应该怎么写??
... ...
} 展开
aspx:
<input type="text" style="border:1px solid #999;" id="time" runat="server" onclick="fPopCalendar(event,this,this)" onfocus="this.select()" readonly="readonly" />
aspx.cs:
protected void Button1_Click(object sender, EventArgs e)
{
RecordBLL recordBLL = new RecordBLL();
Record record = new Model.Record();
record.出生年月 = Request.Form["time"].Trim();
//上面一行应该怎么写??
... ...
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询