471,316 Members | 988 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

asp:button control not firing event

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

Nov 19 '05 #1
3 1099
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
http://www.OdeToCode.com/blogs/scott/

On 10 Sep 2005 06:45:06 -0700, "csgraham74" <cs********@hotmail.com>
wrote:
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


Nov 19 '05 #2
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: http://aspalliance.com/699.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"csgraham74" <cs********@hotmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
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

Nov 19 '05 #3
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

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jeff | last post: by
2 posts views Thread by JCE | last post: by
2 posts views Thread by Weston Weems | last post: by
3 posts views Thread by JV | last post: by
5 posts views Thread by csgraham74 | last post: by
4 posts views Thread by Israel Richner | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.