Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Event handlers

Reply
Thread Tools

Event handlers

 
 
A.M
Guest
Posts: n/a
 
      04-27-2004
Hi,

Using C#, ASP.NET 1.1 and VS.NET 2003, I am trying to add Page_Error event
handler to my page. I know that I can Manually type the handler, but is
there any way to have IDE add the Page_Error event handler to the page?

Thanks,
Allan


 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      04-27-2004
Hi Allan:

Do you mean for just one page?

When in design mode, select View -> Properties, then select your page
in the drop down list of the properties window. Next, click on the
lightning bolt (event handlers for the page), and double click on
Error to have the IDE put all the setup code in place for you.

--
Scott
http://www.OdeToCode.com


On Tue, 27 Apr 2004 10:06:36 -0400, "A.M" <(E-Mail Removed)>
wrote:

>Hi,
>
>Using C#, ASP.NET 1.1 and VS.NET 2003, I am trying to add Page_Error event
>handler to my page. I know that I can Manually type the handler, but is
>there any way to have IDE add the Page_Error event handler to the page?
>
>Thanks,
>Allan
>


 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      04-27-2004
Very simple:
------------

1. Open the page in question.
2. Go to the properties window and find the name of the class for the code
behind
For example: default.aspx = _default
3. Click on the lightning bolt at the top of the Properties window
4. Add an event name for Error and click enter
5. This takes you to the new event, so write some code
6. Save the page

You now know something very few of the VS.NET devs I know happen to be privy
to. ;->

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"A.M" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Using C#, ASP.NET 1.1 and VS.NET 2003, I am trying to add Page_Error event
> handler to my page. I know that I can Manually type the handler, but is
> there any way to have IDE add the Page_Error event handler to the page?
>
> Thanks,
> Allan
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
About Event Handlers, Delegates and Scopes Alex MCSD 6 05-21-2004 01:49 AM
Debug step into event handlers Robert Millman ASP .Net 0 07-29-2003 03:24 PM
wiring up html attribute declared event handlers Oisin Grehan ASP .Net 3 07-15-2003 10:27 AM
Re: crazy event handlers! Trevor Hartman ASP .Net 2 06-26-2003 01:53 AM
Dynamic Buttons and Event Handlers, revisited Boban Dragojlovic ASP .Net 0 06-24-2003 01:51 PM



Advertisments