Wednesday, May 26, 2010

Asp .Net Web Site Project in Asp .Net 4

Pro ASP.NET 4 in C# 2010, Fourth EditionAsp .Net Web Web Site Project in Asp .Net 4 is an excellent starting point for a new project. It comes packed with Membership, Master Page, Style Sheet etc.














Lets explore the contents of a project. The Accounts folder contains the Membership related forms. Most important being Login.aspx and Register.aspx. Forms Authentication is enabled by default.


In the Styles Folder there is Site.css.


Site.master is the Master Page.


First Let me take Site.master. I am editing the heading 'My ASP.NET Application' to 'Shalvin Content Mangement System' which is an H1.


Now I am selecting Default.aspx. I am editing the existing contents of the page to suit my project.
















Clicking on the Login link at the right side of the page will take you to the Login page.















There is an option for Registering as a new user.


Sunday, May 16, 2010

Silverlight DataBinding with Visual Studio 2010 IDE

Silverlight 4 in ActionI discussed Silverlight Databinding in the blog Silverlight 3 / WPF Databinding. There I tweaked the raw XAML for enabling DataBinding.

The Binding class is used to define a connection between a CLR Object and an User Interface Component. The three elements of binding are Source, Binding Mode and the Target. Source is the CLR Object and Target is the Dependency Property.

Visual Studio 2010 have support for Silverlight DataBinding in the IDE.

As in the previous example here too I am placing a Slider Control with Maximum 100 and a TextBox.

In the properties window there is an Advanced Option icon next the Text in the Text Property.


















Clicking the icon another list will appear. Select Apply Data Binding.


















First you can select the ElementName ie. slider1.











Then select the Path. In our case it is the Value.













This action will automtically generate the Binding Syntax.

















Related Blogs
 

Silverlight Out of Browser Application

Pro Silverlight 4 in C#Starting with Silverlight 3 it is possible to run a Silverlight Application as Out of Browser Application.
Means you can work with yours silverlight Application as if working with a Windows Application.

For enabling this feature Select the Project Properties page by going to Project menu and Select <projectname> Properties.

Check the "Enable running application out of browser" option.

























Now by right clicking the Silverlight application in the Browser you will receive an additional option called "Install HelloSilverlight Application on this computer..".







Clicking the option enables you select the location(s) for the shortcuts.