(Rod Stephens) Visual Studio 2008’s new extension methods feature stands out from among Visual Studio’s new offerings because you’ve been clamoring after it for years, right? What’s that? You weren’t clamoring for extension methods? Me neither.
Tag: Development
Extension methods under .NET Framework v2 and v3
(Phil Curnow) Visual Studio 2008 implements what is called ‘multi-targeting’ – in other words, you can select the version of the .NET Framework you wish to work with (V2.0, V3.0 and V3.5). Now, anyone who has selected the target framework to be anything other than version 3.5 and tried to use extens
Understanding Page Class in ASP.NET 2.0
(SANJIT SIL) All web forms are actually instances of the ASP.NET page class, which is defined in the System.Web.UI namespace. The Page class inherits from the TemplateControl class, which in turn inherits from the Control class. As a result, the Page class provides useful properties and methods that
How the SQL UNION Affects Table Design
(Kenneth Downs) Last week we saw a JOIN. A JOIN will combine values from two (or more) different tables and put them into the same row of the output.
Building .NET Controls @ Runtime
(Martin Zahn) .NET offers the possibility to create controls in Windows Form at runtime. Often we encounter a situation where we need to load controls dynamically on the form, as well as position and align them properly. Generally we do this when we are not sure about the number of controls to be di
Managing FTP Transfers from an ASP.NET Web Page
(John Peterson) I was recently working on a project in which one of the requirements was that certain query results be sent to a different company via FTP. Granted things would have been much easier if the receiving company had simply set up a web service, but that didn’t seem to be an option. They
ASP.NET Tips: Working with large SQL tables
(Tom) There are a number of ways to query for data that is stored in a SQL Database from ASP.NET. Generally the best way is to use stored procedures. They can be compiled to be faster, and they are also much safer as they protect you from SQL injection problems, as discussed here. For an example
Extension Methods
(Jim Mischel) Extension methods allow you to add functionality to a class or interface without modifying the class or interface or creating a new derived type. An extension method is a special kind of static method that can be called as though it were an instance method on the extended type. In C# a
Introducing Visual Studio .NET 2008 – Top 10 Features
(Mark Smith) After a long beta period Microsoft pushed Visual Studio .NET 2008 (code named “Orcas”) out to MSDN in November – keeping their promise to deliver it by the end of the year. DevelopMentor has been using Orcas in many of our .NET classes for a while now and I for one, am pretty excited th
Importing an Excel Spreadsheet Using Typed DataSets and TableAdapters: Importing the Excel Spreadsheet
(Nannette Thacker) Over the past four installments in this article series we have: created a SQL Server database for our web application; created an ASP.NET web page that enabled the visitor to upload an Excel spreadsheet and view its contents in a GridView; and created a Data Access Layer (DAL) usi
