Thursday, February 28, 2008

Creating a Silverlight-AJAX-Enabled Web Site with Silverlight 1.1 and VS.NET 2008

Install the necessary components.

  1. Install the Windows Silverlight 1.1 Runtime from here: http://www.microsoft.com/silverlight/resources/LicenseWinDev.aspx
  2. Install the Microsoft Silverlight 1.1 Tools Alpha for Visual Studio 2008 from here: http://www.microsoft.com/downloads/details.aspx?familyid=25144c27-6514-4ad4-8bcb-e2e051416e03&displaylang=en
  3. Install VS.NET 2008.

Create an ASP.NET Web Application

  1. Startup VS.NET 2008.
  2. Click on File->New->Web Site.
  3. Select ASP.NET Web Site.
  4. In the Location path, replace "WebSite1" with "DotNetFun" (without quotes).
  5. Click on OK.
  6. Press Ctrl-Shift-S to save all of your changes.

Add Silverlight Content to an ASP.NET Web Site

  1. In VS.NET 2008, the ASP.NET Web Site created in the preceding steps,
  2. In the Solution Explorer, right-click on the 'DotNetFun solution and click on Add->New Project.
  3. Under project types, select/click on Silverlight
  4. Under templates, select/click on Silverlight Project.
  5. Change the project name from "SilverlightProject1" to "SilverlightProjectTest" (without quotes).
  6. Click on OK.
  7. In the Solution Explorer, right-click on the DotNetFun ASP.NET project and click on Add Silverlight Link.
  8. Select/click on the SilverlightProjectTest project.
  9. Click on OK.
  10. Click on Yes to enable Silverlight script debugging.
  11. Press Ctrl-Shift-S to save all your changes.

Adding AJAX Functionality to an ASP.NET Web Site

  1. Simply add an AJAX Web Form to the ASP.NET project.
  2. Press Ctrl-Shift-S to save all your changes.

Discussion

No comments: