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 simple lines of 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:
Automatic Create an HTML table to display data
Supports different formatting options
Supports paginated display of data (first page, next page, previous page, last page)
Supports sorting by clicking on the list title
Chart Helper
"Chart Helper" can display different types of chart images with various formatting options and labels.
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 leverage 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 website in WebMatrix, follow these steps to install the helper:
In WebMatrix, open the Site workspace.
Click Web Pages Administration.
Log in to Web Pages Administration using password *.
Use the Search Area to search for helpers.
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.)
[Related recommendations]
1. Share ASP.NET study notes (6) WebPages files
2. Share ASP.NET study notes (1)--WebPages Razor
3. Share ASP.NET study notes (2)--WebPages Introduction
4. Share ASP.NET study notes (3) WebPages layout
5. Share ASP.NET study notes (4) folder
The above is the detailed content of Share ASP.NET study notes (8) WebPages Helper. For more information, please follow other related articles on the PHP Chinese website!