Board index » Web Programming » asp:button control not firing event
|
DaveAnderson
|
|
DaveAnderson
|
asp:button control not firing event
Web Programming455
Hello, Ive been working on an asp.net application in both dreamweaver and visual studio .Net. Ive imported files created in dreamweaver into my VS.Net application. The main problem that i have is that my asp:buttons are not firing events anymore. Has anyone ever came across this behaviour or have some advice on how i can resolve my issue. Thanks in advance. CG - |
| Scott
Registered User |
Sat Sep 10 09:41:46 CDT 2005
Re:asp:button control not firing event
It sounds like the event wireup code is missing.
Unfortunately, the VS.NET IDE does sometime eat the wireup code for breakfast. Look at the InitializeComponent() method in the editor (it's in the hidden region that has a warning not to edit), if you don't see event handlers being assigned you'll need to add them. -- Scott www.OdeToCode.com/blogs/scott/">www.OdeToCode.com/blogs/scott/ On 10 Sep 2005 06:45:06 -0700, "csgraham74" <csgraham74@hotmail.com> wrote: QuoteHello, |
| Peter
Registered User |
Sat Sep 10 10:55:08 CDT 2005
Re:asp:button control not firing event
If this problem is that no postback happens at all, then it may be due to a
bug in the client-side validation of ASP.NET 1.1 SP1. You have to have a validator on this page for this bug to be present. If so, check out the first topic of this article: aspalliance.com/699.">aspalliance.com/699. --- Peter Blum www.PeterBlum.com Email: PLBlum@PeterBlum.com Creator of "Professional Validation And More" at www.peterblum.com/vam/home.aspx">www.peterblum.com/vam/home.aspx "csgraham74" <csgraham74@hotmail.com>wrote in message QuoteHello, - |
| csgraham74
Registered User |
Sat Sep 10 11:22:47 CDT 2005
Re:asp:button control not firing event
Is this the code that your talking about ??
#Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()>Private Sub InitializeComponent() End Sub Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub #End Region What must i add to this section ????? I havent done anything like this before so any help greatly appreciated. Thanks CG - |
