asp:button control not firing event

C

csgraham74

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
 
S

Scott Allen

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.
 
C

csgraham74

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top