J
Jeremy Ames
Repost:
Yes. I have other controls that are working correctly.
Check if ur button is in a <FORM runat='server'></FORM> or not.
I am using C# to create a web form. I have got a button that I am trying
to debug but the program doesn't ever stop at the event procedure for the
button. Here is all of the pertinent information:
aspx file:
<asp:button id="btnEditEquipment" runat="server"
CausesValidation="False" Text="Edit Equip"></asp:Button>
aspx.cs file
protected System.Web.UI.WebControls.Button btnEditEquipment;
private void InitializeComponent()
{
this.btnEditEquipment.Click += new
System.EventHandler(this.btnEditEquipment_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
private void btnEditEquipment_Click(object sender, System.EventArgs e)
{
// some code goes here
}
Yes. I have other controls that are working correctly.
Check if ur button is in a <FORM runat='server'></FORM> or not.
I am using C# to create a web form. I have got a button that I am trying
to debug but the program doesn't ever stop at the event procedure for the
button. Here is all of the pertinent information:
aspx file:
<asp:button id="btnEditEquipment" runat="server"
CausesValidation="False" Text="Edit Equip"></asp:Button>
aspx.cs file
protected System.Web.UI.WebControls.Button btnEditEquipment;
private void InitializeComponent()
{
this.btnEditEquipment.Click += new
System.EventHandler(this.btnEditEquipment_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
private void btnEditEquipment_Click(object sender, System.EventArgs e)
{
// some code goes here
}