ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)
page 3 of 6
by Scott Guthrie
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 25567/ 67

ASP.NET MVC Snippets

Built-in snippets are available for all ASP.NET controls and HTML markup elements. 

Built-in snippets are also available for common ASP.NET MVC view scenarios, and for the built-in ASP.NET MVC HTML helpers. 

For example, we can type “<act” within a ASP.NET MVC view and select the “actionlink” snippet:

When we complete it and hit the “tab” key the snippet will execute – which will cause it to replace the snippet name with the markup below:

Notice that the “linktext” and “actionname” values are marked as snippet parameters – which means we can easily replace them without having to use the cursor keys or touch the mouse.  The first linktext parameter value is selected by default – which means we can just type to immediately replace the value, then hit tab to immediately select and replace the second actionname parameter:


View Entire Article

User Comments

Title: asp   
Name: sikat ang pinoy
Date: 2010-02-07 7:59:49 PM
Comment:
asp.net 2010 version is great because of the improve features and easy to use.
Title: Good Post   
Name: sunilkumar
Date: 2009-11-16 12:55:05 AM
Comment:
Good post, it really helped me. thanks

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-18 1:33:56 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search