Html Encoding Code Blocks With ASP.NET 4 |
Html Encoding Code Blocks With ASP.NET 4 Posted: 25 Sep 2009 04:56 PM PDT One great new feature being introduced in ASP.NET 4 is a new code block ( often called a Code Nugget by members of the Visual Web Developer team ) syntax which provides a convenient means to HTML encode output in an ASPX page or view. <% : CodeExpression %> I often tell people it's <%= but with the = seen from the front. Let's look at an example of how this might be used in an ASP.NET MVC view. Suppose you have a form which allows the user to submit their first and last name. After submitting the form, the same view is used to display the submitted values. First Name: <% : Model.FirstName %> Last Name: <% : Model.FirstName %> < form method ="post" > <% : Html.TextBox( "FirstName" ) %> <...(read more) |
Silverlight designer sample code is posted Posted: 24 Sep 2009 11:45 AM PDT If you've been wishing for some helpful designer gestures for your Silverlight DataGrid controls, look no further. The Silverlight Designer Sample is available at the WPF and Silverlight Designer Extensibility site. It demonstrates a pretty neat designer...( read more )...(read more) |
You are subscribed to email updates from "microsoft" via reza in Google Reader To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment