Reputation: 57
I have a code which i have put in and that does not seem to work in IE11. Can anyone please help me out ?
I am working in VS2005 and click event is not firing in localhost.I have tried the following fixes; hotfix from microsoft(microsoft update standalone package) and installed .Net framework 4.5 Even then button event is not firing.
Below is the code which I have put in - The aspx and the aspx.cs lines are mentioned below :
aspx
<asp:Button ID="btnExcelExport" runat="server" Text="Excel" OnClick="btnExcelExport_Click" />
aspx.cs:
protected void btnExcelExport_Click(object sender, System.EventArgs e)
{
Label1.Text = "You clicked a button.";
}
Upvotes: 1
Views: 4367
Reputation: 3043
Is your tag wrapped in a:
<form id="form1" runat="server" enableviewstate="false">
<!-- postbacks and other .NET client-based functionality require a
wrapping form tag -->
</form>
Upvotes: 0
Reputation: 4099
Depending on the version of your .NET framework, this is actually a bug. There's a patch available from Microsoft.
Upvotes: 2