我想实现,在文本框中输入文字,然后点submit按钮后 response.write输出输入的文字,但是总是调试不成功,我是建立了一个名为aa.aspx的文件,
如图
code behind的代码如下:还请帮忙
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class aa : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Submit1_ServerClick(object sender, EventArgs e)
{
Response.Write(Request.Form["text1"].toString);
}
}