1, List pageThe General List page is mainly used to display data, the list page in this article provides data display and paging, delete operations, new and modified operations. Because there are some people in the garden that are using ViewData
(i) Ordinary columns
Copy Code code as follows:
Merge of the GridView column (normal column, no template column included)
Note: 1. The GridView groups and sorts when binding to allow the same rows to be grouped together
2. The
Effect Chart:
The prerequisite is that your Web page is supported Utf-8, as in the Web.config setting as follows:
Copy Code code as follows:
. aspx:
Copy Code code as follows:
Among them, in the data control aspect, has added many controls, in which the GridView control function is very formidable. In this article, you will explore some of the features and usages of the GridView control, and if you are not familiar with
Recently learned some knowledge about asp.net mvc, so to take a small project to practice practicing, improve their own code ability and thinking ability. Before that, it was easy to do something, directly using the soft that generated code to
Copy Code code as follows:
If the virtual directory is named "WebTest", first refer to it in the project
System.DirectoryServices.dll, then
Using System.DirectoryServices;
protected System.DirectoryServices.DirectoryEntry dirroot;
Knowledge Point: A binary number, bitwise left n bit, is to multiply the value of the number by 2 of the n-th side
Binary is one of the two right shifts
1. Convert IP address to integer
Principle: IP address can be considered as a 8-bit unsigned
HTML page
Copy Code code as follows:
validaterequest= "False"%>
Extract HTML source after submission (keep state)
User Control
Copy Code code as follows:
User
For the background some need to log in to access the page, you are not every time to determine the login to save in the session or the value of the cookie exists Ah! If there are dozens of of such pages backstage, then every time to judge, really
1. In the command line, enter "CD C:\Program Files\Microsoft Visual Studio 8\Common7\IDE" (TF program in folder) 2, find the workspace used by that person, operations as follows: TF workspaces/owner:liuxc/server:http://xxx.xxx.xxx.xxx:8080
3.
Effect:
. aspx:
Copy Code code as follows:
. Aspx.cs:
Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using System.Data;
Using System.Linq;
Asp. NET data binding in general
1, //calling code-behind page methods, properties, or fields
This is typically called by a number of properties and methods, pay attention to the invocation of the properties, methods or fields of the scope, must be
Today, there is a need to do static pages, that is, there is a set of two options on the page radio buttons and a list of 6 rows (the list is implemented with a table tag, not div), when selecting the option for a radio button, the first three
As shown in figure:
The core of this technology is achieved through the Autocompleteextender control in the ASP.net Ajax controls toolkit.
The Autocompleteextender control realizes the automatic input suggestion function, obtains the prompt
Asp. NET provides 3 authentication methods: Windows Authentication, forms authentication, and Passport authentication.
Windows Authentication: IIS performs authentication based on the settings of the application. To use this authentication method,
Requirements: do an AJAX login
Main technical points: jquery Ajax and Blur events
When the user name input box loses the focus, it triggers the Blur event, then makes an AJAX request, obtains the result (true or false), and if the request result
If you feel useful, cuff me.
By the way when you go!
Copy Code code as follows:
Public MainPage ()
{
InitializeComponent ();
}
Phoneapplicationservice phoneappservice = phoneapplicationservice.current;
protected override void
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