PC Review


Reply
Thread Tools Rate Thread

Buttons on a web page

 
 
Morton
Guest
Posts: n/a
 
      13th Feb 2008
I created a new web page and added a "Cancel" button.

The cancel button is supposed to activate a clicked event.

When I run the page in debug mode using IE 6 with a breakpoint set at the
button_click subroutine and then click the button - nothing happens

Any suggestions as to what I am missing?

Regards

Morton
 
Reply With Quote
 
 
 
 
Zeeshan Haider
Guest
Posts: n/a
 
      14th Feb 2008
1 - Make sure that button has runat=server attribute set.
2 - Attach the your handler/subroutine/menthod to button e.g. In C# you can
do it as, this.button.Click += new EventHandler(button_Click);
Probably the best place to add this line of code is InitializeComponent()
method. You can define such interaction between control and its subroutine
anywhere but you have to make sure that it must not be happened on postback
event.

Also make sure that your are not running your project in release mode if you
are using the Microsoft Visual Studio.

"Morton" wrote:

> I created a new web page and added a "Cancel" button.
>
> The cancel button is supposed to activate a clicked event.
>
> When I run the page in debug mode using IE 6 with a breakpoint set at the
> button_click subroutine and then click the button - nothing happens
>
> Any suggestions as to what I am missing?
>
> Regards
>
> Morton

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Next page, Previuous page and First Page cmd buttons =?Utf-8?B?c2ViYXN0aWNv?= Microsoft Access Forms 4 8th Jun 2007 11:02 PM
Edit Compose Page and Read Page buttons are grayed out =?Utf-8?B?UmljaGFyZA==?= Microsoft Outlook Form Programming 3 1st Feb 2007 08:52 PM
No page banner or buttons on default page in FP 2003 =?Utf-8?B?VGhlIFE=?= Microsoft Frontpage 1 28th Jul 2006 08:47 PM
PAGE LINKS/BUTTONS WON'T WORK UNTIL PAGE FULLY LOADED Fenno Microsoft ASP .NET 0 6th Nov 2005 06:02 AM
Page "flashes" after inserting Active Buttons in Include page =?Utf-8?B?RGlhbmEgTw==?= Microsoft Frontpage 7 11th Jul 2005 03:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:51 PM.