ASP.NET Tutoria...login
ASP.NET Tutorial
author:php.cn  update time:2022-04-11 14:18:18

Web Pages Helper


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 a few lines of simple Razor code.

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

In the following chapters of this tutorial, you will learn how to use Razor helpers.

Here are brief descriptions of some useful Razor helpers:


WebGrid Helpers

The WebGrid helpers simplify the way you display data:

  • Automatically create an HTML table to display data

  • Support different formatting options

  • Support data paging display (First page, next page, previous page, last page)

  • Support sorting by clicking on the list title


Chart Helper

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

07.jpg06.jpg

The data source displayed by the Chart helper can be an array, database or file.


WebMail Helper

WebMail Helper provides the function of sending emails using SMTP (Simple Mail Transfer Protocol).


WebImage Helper

WebImage Helper provides functions for managing images in web pages.

Keywords: flip, rotate, scale, watermark.


Third Party Helpers

With Razor, you can use built-in or third-party helpers to simplify email, databases, multimedia, social networking, and many other problems ( such as navigation and network security).


Installing Helpers

WebMatrix already includes some helpers, and you can install others manually.

In the WebPages Helpers Reference Manual at w3cschool.cc, you can see a convenient reference manual that covers the built-in helpers and other toolkits that can be added to the ASP.NET Web Helpers Library through manual installation Helper in .

If you created a site in WebMatrix, follow these steps to install the helper:

  1. In WebMatrix, open the Site job district.

  2. Click Web Pages Administration.

  3. Log in to Web Pages Administration using password *.

  4. Use the Search Area Search Helper.

  5. Click Install to install the helper you need.

(* If this is your first time using Web Pages Administration, you will be prompted to create a password.)

04.jpg


php.cn