For example, the word online editor Control
In Asp.net, freetextbox is used as the editor to convert freetextbox. DLL is placed in the bin directory and freetextbox is added. DLL reference, and then the using namespace can be called in the CS file.
I like to be lazy. I am too lazy to write and verify JS one by one. Some of them use. Net verification controls, but the submit button has to execute other JavaScript code,
After half a day, I found that if the js I wrote contains return, the. NET
1. Use the built-in paging function of the DataGrid
Add the following statement to the properties of the DataGrid Control:Allowpaging = "true"Pagesize = "5"Pagerstyle-horizontalalign = "right"
Note: allowpaging allows paging. Pagesize
Use ASP to minimize the workload on the server. In this way, JavaScript should be used to detect all submitted fields and submit them to the server. In this way, the server does not have to perform any further detection, when submitting a script,
This is a bad
CodeHabits of post-release running problems. The cause of the error is that. net2.0 cannot correctly identify the case differences between server controls and variables, but this error is only reflected in IIS and does not occur
In Asp.net MVC, every HTML Control Returns mvchtmlstring, which inherits htmlstring. The following is a custom HTML Control for displaying male and female. You can directly call this custom HTML control when creating a page. Other HTML controls
1. transmitfile to solve the problem that the aspnet_wp.exe process cannot be successfully downloaded when response. binarywrite downloads a file larger than MB.
String filename = "Planning Information Data Warehouse field description .doc"; // file
1. open a new window and send parameters:
Transfer Parameters:Response. Write (" ")
Receiving parameters:String A = request. querystring ("ID ");String B = request. querystring ("id1 ");
2. Add dialog box for button
Button1.attributes. Add
Checkmes
Protected against injection filters or, and ', &, + ,,,''
Keyword Detection-anti-Injection
Checking whether the user status is online (checking sessions)
┖ ┈ Showhtmlmsg writes the specified content to the page
Encryptstring
Encryption
See also: Enterprise rest = customize, invent and standardize media types>
MVC and rest are two different world views. the former is more about modeling behavior, while the latter emphasizes data (state and state change ). the former provides
In the program, you need to use progress bars to intuitively reflect the progress of command execution. However, Asp.net does not have any special progress bar controls. I searched the internet and found that the implementation methods are
During the development process, some queries are often made, such as selecting conditions at the top of the page, and the query results are displayed below.If there are too many query results, the scroll bar on the right of the page starts to work.
Through the learning of the first two sets of videos, we have a preliminary understanding of Asp.net. The following describes what is Asp.net and compares Asp.net and ASP.
ASPIt is a Microsoft technology and a server-side scripting technology
ASP. NET is a web development tool launched by Microsoft. It has powerful functions. Today, I watched the video and talked about the verification control. I really felt that Microsoft has served the people wholeheartedly. More and more admire
After reading the niuyun news publishing system, I feel like I am familiar with ASP. net has a certain understanding, is curious about some new technologies, want to quickly learn JavaScript, jquery, Ajax and other new knowledge. So I hurriedly
Main controls
The detailsview and formview controls are powerful in displaying a single record in the backend data source, but it is unrealistic to force users to display countless records on a single page. Therefore, we can combine the gridview
Website navigation
It is difficult and time-consuming to maintain navigation menus for large sites.
In ASP. NET 2.0, menus can be stored in files to facilitate maintenance. This file is usually namedWeb. sitemapIs stored in the root directory of the
Method 1: first create An ASPX page dynamicpage. aspx:
untitled page
Create an excutehtml. aspx for generating other pages, drag and drop a button, and then type the following code in the codebehind file:Using system;
Using
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service