新手问题多...大麻烦...我引用母板后,不调用按钮事件...... 请各位前辈指教啊~~~~ 不引用母板是不会出现这样问题,断点调试也试过了,点击按钮没反应.... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看看代码里<asp:button runat="server" click="xxx"...红色部分设置没有 <asp:Button ID="btnSubmit" runat="server" Text="提 交" onclick="btnSubmit_Click" /> protected void btnSubmit_Click(object sender, EventArgs e) { if (Page.IsValid) { //string UserID=Session["UserID"]; string TrueName = txtTrueName.Text.Trim(); string Age = txtAge.Text.Trim(); string Sex = Request["RedSex"].ToString(); string Address = txtAddress.Text.Trim(); string Phone = txtPhone.Text.Trim(); string QQ = txtQQ.Text.Trim(); string Excuse = txtApplicationExcuse.Text.Trim(); Response.Write(Sex); } } 未将对象引用设置到对象的实例。 KeyPress、KeyDown、KeyUp之间的区别???? 高手来看~~~~~~~~~~ 提问:如何用C#做HTTP的POST方法请求 求助。关于gdi和滚动条。 莫名其妙的问题,谁知道就帮帮我了,谢谢了先 一个关于oraclelob的问题,请大侠们帮忙,在线等 有关函数的问题 串口小票打印的问题 用C#如何实现在form上画一条曲线,然后用鼠标托动曲线上的某一个点,该曲线的弧度根据鼠标的移动而变化 如何取的列表中二维数组的每个值? 我是新手,麻烦各位前辈帮个小忙...我JS调用后天方法,在页面加载的时候为什么会自动调用后台方法了?
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
//string UserID=Session["UserID"];
string TrueName = txtTrueName.Text.Trim();
string Age = txtAge.Text.Trim();
string Sex = Request["RedSex"].ToString();
string Address = txtAddress.Text.Trim();
string Phone = txtPhone.Text.Trim();
string QQ = txtQQ.Text.Trim();
string Excuse = txtApplicationExcuse.Text.Trim();
Response.Write(Sex);
}
}