Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / June 2007

Tip: Looking for answers? Try searching our database.

simple question: how to add an event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Fish - 01 Jun 2007 11:03 GMT
I have a c# asp.net page as created in vs2005 (i.e. with auto event wireup)
and I want to add a pre-render event to it i.e..

protected void MyPage_PreRender(object sender, EventArgs e)

Is there any way other than having to type in all this? It seems very prone
to mis-typing or cut-and-paste errors.

I'm sure there must be somewhere I can just click and select the event I
want to add, but I can't find it anywhere.

Andy
pvdg42 - 01 Jun 2007 14:56 GMT
>I have a c# asp.net page as created in vs2005 (i.e. with auto event wireup)
>and I want to add a pre-render event to it i.e..
[quoted text clipped - 8 lines]
>
> Andy

I'll hope in advance that somebody will prove me wrong hare, but in terms of
automatically creating page level event procedure shells, it appears that
you must do it manually.
Andy Fish - 05 Jun 2007 12:07 GMT
>>I have a c# asp.net page as created in vs2005 (i.e. with auto event
>>wireup) and I want to add a pre-render event to it i.e..
[quoted text clipped - 12 lines]
> of automatically creating page level event procedure shells, it appears
> that you must do it manually.

then prepare yourself for a handy hint. This was found by a colleague
(almost by accident)

- open the page in design view
- right click on the background of the page
- select view component designer

and now the properties window shows the server properties for the page and
allows you to select events.

Andy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.