PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Automatically create stubs for handling events from aspx/ascx sourceview?

 
 
DC
Guest
Posts: n/a
 
      6th Mar 2008
Hi,

when I add a control like

<asp:LinkButton runat="server" id="myLink" />

then I can switch to the design view and click on the OnClick event,
enter a name for the handler, hit "Tab" and get an automatically
created event handler in code behind.

Can I do this without going to design mode (because it bugs me)? Enter

<asp:LinkButton runat="server" id="myLink" OnClick="myLink_OnClick" />
and then click somewhere to get a stubs?

TIA for hints,

Regards
DC
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      6th Mar 2008
This is one of the most desired features of Visual Studio that hasn't been
implemented yet. I don't know if it is on MS plans.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"DC" <(E-Mail Removed)> wrote in message
news:65e5af53-cdac-4dd6-a4ca-(E-Mail Removed)...
> Hi,
>
> when I add a control like
>
> <asp:LinkButton runat="server" id="myLink" />
>
> then I can switch to the design view and click on the OnClick event,
> enter a name for the handler, hit "Tab" and get an automatically
> created event handler in code behind.
>
> Can I do this without going to design mode (because it bugs me)? Enter
>
> <asp:LinkButton runat="server" id="myLink" OnClick="myLink_OnClick" />
> and then click somewhere to get a stubs?
>
> TIA for hints,
>
> Regards
> DC



 
Reply With Quote
 
DC
Guest
Posts: n/a
 
      6th Mar 2008
On 6 Mrz., 16:12, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.org> wrote:
> This is one of the most desired features of Visual Studio that hasn't been
> implemented yet. I don't know if it is on MS plans.
>
> --
> Eliyahu Goldin,
> Software Developer
> Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net
>
> "DC" <d...@upsize.de> wrote in message
>
> news:65e5af53-cdac-4dd6-a4ca-(E-Mail Removed)...
>
>
>
> > Hi,

>
> > when I add a control like

>
> > <asp:LinkButton runat="server" id="myLink" />

>
> > then I can switch to the design view and click on the OnClick event,
> > enter a name for the handler, hit "Tab" and get an automatically
> > created event handler in code behind.

>
> > Can I do this without going to design mode (because it bugs me)? Enter

>
> > <asp:LinkButton runat="server" id="myLink" OnClick="myLink_OnClick" />
> > and then click somewhere to get a stubs?

>
> > TIA for hints,

>
> > Regards
> > DC- Zitierten Text ausblenden -

>
> - Zitierten Text anzeigen -


Thank you for letting me know, Eliyahu.
Regards
DC
 
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
Re: aspx ascx and events Andy O'Neill Microsoft ASP .NET 4 5th May 2010 10:18 AM
Re: aspx ascx and events Andy B. Microsoft ASP .NET 0 30th Apr 2010 12:59 AM
aspx ascx and events Peter K Microsoft C# .NET 4 29th Apr 2010 10:27 PM
aspx, ascx, and events Peter K Microsoft ASP .NET 0 29th Apr 2010 02:54 AM
Handling Events: Web user control VS. Std ASPX page Michael Craig Microsoft ASP .NET 0 18th Jul 2003 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 AM.