CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 2/25/2007 4:09:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 9 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
jefferycotton
Asp.Net User
Can't VS 2005 create stub code for ASP component events?2/25/2007 4:09:11 PM

0/0

Greetings,

I'm developing a new website with ASP.NET in VS 2005. I'm quite new to VS 2005 and am extremely impressed with it. But one thing that I'm a little perplexed about -- with all of the automatically generated code -- I apparently have to manually add the methods for events?  

For example, I create a gridview, and add this to the definition:

OnRowDataBound="gvUploadHistory_OnRowDataBound"

I would expect at that point that VS could automatically generate the stub for this method in the code file, with the appropriate EventArgs type.

Am I missing something here? Coming from a classic asp background, I'm certainly used to coding everything manually. But if this is available somehow, I'd like to take advantage of it!

 THanks,

Jeff

 

pkellner
Asp.Net User
Re: Can't VS 2005 create stub code for ASP component events?2/25/2007 4:20:59 PM

0/0

you must be missing something because those events are generated automatically.  Here are some steps to try.

create an empty asp.net web project

add a new web page (new aspx page like default.aspx)

make sure you are in design view of that page

drag a gridview onto the page

go over to the properties window on the right and switch to events (lighning bolt)

choose rowdatabound event and double click on that field.  It should automatically create the event for you.

 

Let me know if you get stuck someplace.  It becomes second nature pretty quickly.

HTH's.


Peter Kellner
http://73rdstreet.com and blogging at
http://PeterKellner.net
MVP, ASP.NET
jefferycotton
Asp.Net User
Re: Can't VS 2005 create stub code for ASP component events?2/25/2007 7:52:31 PM

0/0

Thanks.... as a classic asp kind of guy I just can't get my head out of digging directly into the code... obviously a good VS 2005 book is in order. The little manual that came with it just isn't doing the job. :)
shados
Asp.Net User
Re: Can't VS 2005 create stub code for ASP component events?2/25/2007 9:58:05 PM

0/0

Don't bother actually :) The next version of Visual Studio, which is probably due this year (late though!), will support exactly what you said, most everything thats possible in the design view will be possible in code view, thus solving the problem. Even better, there will be a SPLIT view for the best of both world. Its going to be sooooo sweet.
4 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

ng.borland-forums.borland-public-cppbuilder-japanese - Web Programming ... 12/13/2007 5:39:03 AM =?iso-2022-jp?B? ... can't vs 2005 create stub code for asp component events? personal site starter kit ...
ng.borland-forums.borland-public-cppbuilder-japanese - Web Programming ... 12/13/2007 5:39:03 AM =?iso-2022-jp?B? ... can't vs 2005 create stub code for asp component events? personal site starter kit ...
VS 2005 Web Project System: What is it and why did we do it ... Today with VS 2003 this is fairly limited (you can pretty much only create a web ... I'm not sure why your component project is currently a web project in VS 2005. ...
CodeProject: ASP.NET AJAX Controls and Extenders. Free source code and ... ( For now, we will put in stub methods for the construction code for these two components. ... You can automatically create methods from our two method ...
ASP.NET Development Martin Høst Normark - 24 Sep 2005 6:39 AM - 1 message ... Can VS.NET automatically create property declarations? Porting ASP (WInDNA) application to .Net ...
CodeProject: NHibernate Best Practices with ASP.NET, 1.2nd Ed.. Free ... ( Since SQL Server 2005 doesn't come with Northwind by default, you can simply ... that it takes just a few lines of code to create a full-blown DAO ready for use: ...
Understanding Page Inheritance in ASP.NET 2.0 - Rick Strahl's Web Log For example, in VS 2003, we would create a base class within the ... VS 2005 code compatibility - ASP.NET Forums. by ASP.NET Forums June 05, 2007 @ 11:42 am ...



 
All Times Are GMT