Posts

Showing posts with the label SilverLight

Create your First Silverlight Application using LINQ and Web Services

Image
Create your First Silver light Application using LINQ and Web Services 1. Create a New Silverlight Application project and name it “ImageViewer” 2. Select ASP .NET Web Application Project and change the name for the web project to “ImageViewer_Web” 3. The solution includes two projects. One is for the Silverlight Control [i.e. ImageViewer] and Another one is for the ASP .NET web system [i.e ImageViewer_Web] 4. Now, we have to create a data context using LINQ to SQL features in ImageViewer_Web project. To do that, right click on the Web Project and Select Add->New Item and Select LINQ to SQL Classes 5. Then Open Server Explorer (View->Server Explorer). Create a connection to the “ImageViewer” database and drag and drop the Tables (tblIndex, DocType, tblDoc) into the left pane and Stored Procedures (getDocuments(), getDocumentTypes()) into the right pane of ImgDataManager.dbml 6. Name the data context as “ImgDataManagerDataContext” and set Serialization mode to Unidirectional 7. If...

Configuration of SharePoint for Silver Light 2.0

Image
A number of configuration steps must be taken before you can host the Silver light 2 applications in your SharePoint sites. Install .NET 3.5 Framework Windows SharePoint Services 3.0 Service Pack 1/ MOSS 2007 Service Pack 1: Windows SharePoint Services 3.0 Service Pack 1 can be downloaded from http://www.microsoft.com/downloads/details.aspx?FamilyId=4191A531-A2E9-45E4-B71E-5B0B17108BD2 . MOSS 2007 Service Pack 1 can be downloaded from: http://www.microsoft.com/downloads/details.aspx?FamilyId=AD59175C-AD6A-4027-8C2F-DB25322F791B Register System.Web.Silverlight.dll into GAC: The System.Web.Silverlight.dll must be deployed in the GAC. This assembly is part of the Silver light 2 SDK and can be found in C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Server Setup MIME Type: The IIS Web applications hosting the sites you target with the samples must be configured to enable ASP.NET AJAX 1.0 and Silver light 2 applications. First thing to do is set register the XAP MIME type in the...