public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.Label Label1;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
TextBox1.Text = "aaa";
} #region Web Form Designer generated code
private void Button1_Click(object sender, System.EventArgs e)
{
Label1.Text = TextBox1.Text;
}
{
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.Label Label1;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
TextBox1.Text = "aaa";
} #region Web Form Designer generated code
private void Button1_Click(object sender, System.EventArgs e)
{
Label1.Text = TextBox1.Text;
}
解决方案 »
- (asp.net)求一个jquery的JSDialog弹出层的连接数据库的那中例子
- sql 关于日期范围条件
- 关于HTTP在iis上发布
- 求一个比较好用的bug管理工具(100分)
- 实现远程获取xml保存到本地的xml
- 程序运行时出现了一个黄色的横条是怎么回事啊
- 请问如何存储来访者的IP地址到数据库!
- 谁能帮我翻译这句:We prototyped this approach in JBoss, a popular open-source application server written in Java.
- 怎么样用程序创建、删除文件夹啊!!!!!请各位老大赐教啊!!!!!!!
- 朋友介绍学ASP.NET,求大神介绍书籍和视频
- 关于“类型或命名空间名称“Web”在类或命名空间“System”中不存在(是否缺少程序集引用?)”的问题。
- 在ASP.NET中如何在数据库中存取和显示Word文档?
{
// 在此处放置用户代码以初始化页面
TextBox1.Text = "aaa";
}
==>private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
if(!Page.IsPostBack)
{
TextBox1.Text = "aaa";
}
}