ASP.NET Web Pages - Helpers
Web helpers greatly simplify web development and common programming tasks.
ASP.NET Helpers
ASP.NET helpers are components accessible with just a few lines of simple Razor code.
You can build your own helpers using Razor syntax stored in .cshtml files, or use the built-in ASP.NET helpers.
In the following chapters of this tutorial, you will learn how to use Razor helpers.
Below are brief descriptions of some useful Razor helpers:
WebGrid Helper
The WebGrid helper simplifies the way data is displayed:
- Automatically creates an HTML table to display data
- Supports different formatting options
- Supports data paging (first page, next page, previous page, last page)
- Supports sorting by clicking column headings
Chart Helper
The "Chart helper" can display different types of chart images with various formatting options and labels.


The Chart helper's data source can be an array, a database, or a file.
WebMail Helper
The WebMail helper provides the ability to send email using SMTP (Simple Mail Transfer Protocol).
WebImage Helper
The WebImage helper provides the ability to manage images in web pages.
Keywords: flip, rotate, zoom, watermark.
Third-Party Helpers
Through Razor, you can use built-in or third-party helpers to simplify the use of email, databases, multimedia, social networks, and many other concerns (such as navigation and web security).
Installing Helpers
WebMatrix already includes some helpers, and you can also install others manually.
in The WebPages Helper Reference on runoob.com, where you can find a handy reference covering the built-in helpers and others that can be added to the ASP.NET Web Helpers Library toolkit through manual installation.
If you have created a website in WebMatrix, install the helpers by following the steps below:
- In WebMatrix, open the Site workspace.
- Click Web Pages Administration。
- Log in to Web Pages Administration using the password *.
- Use Search area Search for helpers.
- Click Install Install the helpers you need.
(* If this is your first time using Web Pages Administration, you will be prompted to create a password.)
