Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Web Pages Helpers

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:


Chart Helper

The "Chart helper" can display different types of chart images with various formatting options and labels.

chartchart

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:

  1. In WebMatrix, open the Site workspace.
  2. Click Web Pages Administration。
  3. Log in to Web Pages Administration using the password *.
  4. Use Search area Search for helpers.
  5. 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.)