Everyone who actually reads will probably already know this, but, it was new to me.
In your ASP 2.0, you can add a folder called Code to your project. If you add a class file to that directory, it will be dynamically compiled with your site. No build required. I understand that you can put Typed Datasets and WSDL files in there as well and the proxy classes will be generated.
I was breezing through ASP.NET v. 2.0-The Beta Version at B&N (until I noticed that Hurricane Charley had arrived to Chesapeake Va...and my street usually floods out) and saw that you can include both .vb and .cs classes, but you have to define seperate folders under code and configure your web.config so that the compiler knows that it is handling two languages.
I sorta skipped the ASP thing, but I was always impressed with being able to add a page to the site and it ran. I don't think that I want to add my source code to production sites, but for fixing bugs in development/test this will be great.
C
Ok...I've often muttered under my breath for someone to RTFM, and I am usually the one who has not read the manual. But, with a product like VS2k5, the manual is either the MSDN Help Collection, assortment of books (browsed through quickly at B&N while sipping a Mocha) or web resources (MSDN, Blogs, etc).
Today, I was working through a series of articles at MSDN (Web Development with Visual Web Developer 2005 Express Edition and SQL Server 2005 Express Edition Part 1, Part 2 and Part 3). All the while, I did not notice that my ASP “Project” did not have a Project! It's a web site.
I know that there will many advantages to this, but the first one that came to mind was this: Source Control Integration. I have worked on several projects where one of the two events has happened:
- I need to add something to the web site, but another developer has the Project checked out.
- (Worse) A developer adds a new ASPX to the project and then checks the Project in, but not the ASPX. I come along, refresh the project and low, there is a Yellow Caution sign next to a Phantom Page.
Of course, I've never been guilty of that...
C