用web matrix,那你双击一下Button直接把代码写进去就行了
不需要this.Button1.Click += new System.EventHandler(this.Button1_Click);吧。
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button>看看这句有没有onclick="Button1_Click"?
不需要this.Button1.Click += new System.EventHandler(this.Button1_Click);吧。
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button>看看这句有没有onclick="Button1_Click"?
解决方案 »
- 修改相同的字要怎么做呢
- 用asp.net(C#)或者html页面 实现客户端驱动扫描仪自动扫描生成图片
- 为会么Html格式的Email,收到后,CSS文件不起作用,CSS路径是正确的
- TEXTBOX的后台引用
- 大家新年好!请问GridView中如何获得行索引?
- Datagrid的取值问题~
- 如何解决美国网站的中文乱码的问题?
- 重开一帖,如何将网页源码中../等相对路径转换为绝对路径??
- 在浏览器中传递中文 。。。!
- DataSet的问题
- asp.net和asp能否共同存在一个虚拟目录下?能否共享session和cookie?
- asp.net是不是可以直接在win2000 server 2003下运行?
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{ //////////////////////////////////////////////////////////////////////////////////
加于此处!!!!!!!!!! this.DDL_unit.SelectedIndexChanged += new System.EventHandler(this.DDL_unit_SelectedIndexChanged);
this.DDL_group.SelectedIndexChanged += new System.EventHandler(this.DDL_group_SelectedIndexChanged);
this.tb_pwd.TextChanged += new System.EventHandler(this.Button1_Click);
this.btn_certain.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load); }