ASP.NET Web Pages - Helper

Web Helpers greatly simplify web development and common programming tasks.

ASP.NET Helper

ASP.NET helpers are components that can be accessed through a few lines of simple Razor code.

You can build your own helpers using Razor syntax stored in .cshtml files, or use built-in ASP.NET helpers.

You will learn how to use Razor helpers in the following chapters of this tutorial.

Below is a brief description of some useful Razor helpers:

WebGrid Helper

The WebGrid Helper simplifies the method of displaying data:

  • Automatically establishes an HTML table to display data
  • Supports different formatting options
  • Supports pagination of data (first page, next page, previous page, last page)
  • Supports sorting by clicking on column titles

Chart Helper

"Chart Helper" can display different types of chart images with various format options and markers.

Chart Helper can display data from arrays, databases, or files.

WebMail Helper

WebMail Helper provides the functionality to send email messages using SMTP (Simple Mail Transfer Protocol).

WebImage Helper

WebImage Helper provides the functionality to manage images on web pages.

Keywords: Crop, Rotate, Resize, Watermark.

Third-party Helper

Through Razor, you can use built-in third-party helpers to simplify the use of email, database, multimedia, and social networks, as well as many other issues such as navigation and network security.

Install Helper

WebMatrix already includes some helpers, but you can also install other helpers.

In CodeW3C.com Helper Reference ManualIn, we provide relevant quick references about the built-in helpers that you can install (part of the ASP.NET Web Helpers Library) and other helpers.

If your website is created in WebMatrix, please use the following steps to install the helper:

  1. In WebMatrix, open Site workspace
  2. Click Web Pages Administration
  3. Log in to Web Pages Administration with a password
  4. UseSearch FieldSearch Helper
  5. ClickInstallTo install the helper you need

(* When you first use Web Pages Administration, you will be prompted to create a password)