473,372 Members | 903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 1182
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeff | last post by:
I need to intercept the Click event of a asp:Button on the client side so that i can disable it after they've clicked it... HOW can i do this?? I was thinking of making the button an HTML button...
2
by: JCE | last post by:
I need to programmatically invoke an asp:Button click event from a javascript function. The page containing the script and the button is the HTML page associated with a WebUserControl-derived...
3
by: Charlie | last post by:
Hi: when the user selects the save button (asp control) to intiate a postback, I would like to pop up a javascript alert box to confirm if he really wants to save. If he selects no from alert...
7
by: Venus | last post by:
Hello, I am trying to generate a dynamic form at runtime and would like to do it using "<asp: ..." form elements as follows Build up the string that is placed somewhere in the HTML code the...
2
by: Weston Weems | last post by:
Hello... I've got a solution with 7 projects... the problem I am having specifically is that I've got a simple asp:button on a simple usercontrol. I am making sure its not stupid vs.net...
3
by: JV | last post by:
This is for anyone who has tackled the accessibility issue on their web site (and if you haven't, I bet you will in future). Apparently the asp:button control always renders as '<input...
5
by: csgraham74 | last post by:
Hi guys, I posted regarding this issue the other day but i still dont have an answer to my problem. Basically i have imported asp.net pages from dreamweaver into visual studio. Ive added a...
4
by: Israel Richner | last post by:
I know I can use <a></aand modify it's :hover and :visited appearance in my .css file. I'd like to know if I can do the same for a asp:button control. I'd like to do some processing of data in...
4
by: Sean | last post by:
I have a situation whereby I need to modify the text string appearing on an ASP button with some text derived from a Javascript function. But I am unsure of the correct syntax to do so. ...
1
by: mazdotnet | last post by:
Hi all, I'm really stuck trying to figure the following out. I have been working on a shopping portal where you can select products from a list inside a repeater on the bottom of the page and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.