Monday, August 28, 2006

Getting started ASP.NET 2.0 – A step by step guide


Are you new to .NET Framework 2.0 / ASP.NET 2.0 / Visual Web Developer 2005 / SQL Express 2005? Don’t worry! Here are the detailed instructions for you to get started with new adventure. Good news is all of these tools are free from Microsoft. Have fun!

NOTE: Please read system requirements and
instructions on Microsoft Website, provided with each component

  1. Install .NET Framework 2.0 (if not already done so)

    1. Download from the following location:
      http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en

  2. Install Visual Web Developer 2005

    1. Download from the following location:
      http://msdn.microsoft.com/vstudio/express/vwd/download/

  3. Install SQL Server 2005 (Express Edition) - Don't get confused with all the download options, follow the instructions:
    1. http://msdn.microsoft.com/vstudio/express/sql/download/

    1. SQL Server 2005 Express Edition SP1
      Install Microsoft SQL Server 2005 Express Edition

      Download (53.8 MB)

    2. SQL Server Management Studio Express

      Download (38.5 MB)

NOTE: If you have enough disk space install following but not
mandatory (these can be installed later, when needed)


    1. SQL Server 2005 Express Edition with Advanced
      Services SP1 (234 MB and 213 MB)

    2. Install Additional Components (18 MB and 121
      MB)
  1. Start Tutorial at:
    http://asp.net/guidedtour2/


http://quickstarts.asp.net/QuickStartv20/aspnet/

Friday, August 11, 2006

ASP.NET 2.0 Security: Applying Membership and Roles database scripts to an existing database

ASP.NET 2.0 has beautiful inbuilt feature called Membership and Roles. With this you can create Member Registration / Login functionality with very minimal effort. One way to achieve this is through Visual Studio 2005 -> ASP.NET Configuration which will automatically create Membership database in the background. You might be wondering how use your existing database for the same purpose. Here is the set-by-step process to apply scripts on your existing database:

Open command prompt and navigate to .NET Framework 2.0 install folder (eg. “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\”)
Type “aspnet_regsql.exe” and hit enter to run the program


You will get following screen and click NEXT to continue


Select “Configure SQL Server for application services” (selected by default) and click NEXT


Enter your SQL Server Name / IP / (localhost), select authentication, database and click NEXT


Review details to make sure you are applying scripts on intended database and Click NEXT

Now your Database is ready to use for ASP.NET Membership and Roles

Finally you can modify your web.config file as follows: