Today, we create a VB.net login instance. The foreground uses Ajax in Ext. The background uses the ashx file to process the login process and stores the user in the session. This error always occurs. [nullreferenceexception: object reference is not
I,IIS7.0 configure ASP. NET2.0
1. ASP. NET 2.0 deployment
1) first enable the win7 feature. The path is marked
ASP. NET2.0 is selected below. If you want to support ASP. NET1.1, IIS6 is selected as compatible.
2) Set security options
3) Add a. Net
1. Front-end
First, we need the Jquer package.
Copy codeThe Code is as follows:
The following is
// Here is the source of the Parameter
2. Background
Add using System. Web. Services;
Copy codeThe Code is as follows: [WebMethod] // you must add [
First, add the following code under the web. config | app. config file:
Copy codeThe Code is as follows:
IV: the initial vector of the encryption algorithm.
Key: the Key of the encryption algorithm.
Next, create a class.CryptoHelperAs the
Jquery and ajax have fallen behind in discussion today, and there are a lot of materials on the Internet, but many new users are still confused about this. This article demonstrates how to use jquery to implement ajax technology in the simplest way.
Every time we create a database-driven personalized web site, we must protect user data. Although hackers can steal personal passwords, the more serious problem is that they can steal the entire database and then immediately use all the
Use Page. ClientScript. RegisterClientScriptBlock and Page. ClientScript. RegisterStartupScript: difference:
1. Use Page. ClientScript. RegisterClientScriptBlock
C # code
Copy codeThe Code is as follows:
The running result is as follows:Copy
Copy codeThe Code is as follows: // a required namespace
Using System;
Using System. Data;
Using System. Data. SqlClient;
// The general content in the middle is omitted
String tabName = "table1 ";
// Declare the name of the table to be created. You
Implement the pagination function provided by the GridView:
To implement the GrdView paging FunctionThe procedure is as follows:1. Change the AllowPaging attribute of the GrdView control to true.2. Change the PageSize attribute of the GrdView
Edit the gridview example. The complete code is as follows.
Copy codeThe Code is as follows: protected void GridView1_RowEditing (object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e. NewEditIndex;
BingGrid ();
}
Protected void GridView1
How to use ad controls:
An ad file is an XML file. All the tag attributes in the ad file are analyzed and placed in the adProperties dictionary for Attribute editing.
Ads. xml
Copy codeThe Code is as follows:
4rwbgzby.gif
Http://www.jb51.net
1. Page jump:
(1 server transmission
Server. Transer (http://www.jb51.net); after directed to the new page, the original URL will still be displayed, the browser will not return to the original page, the history will not be recorded.
Applies to
1. Request
The following is an example. You can use the Request method to determine whether the image is browsed internally, or whether the image is directly browsed by the website or used externally.
Copy codeThe Code is as follows:
Using
1. httphandler
Instance 1: generate a dynamic image to output the Client IP address, operating system type, and browser type.
Copy codeThe Code is as follows:
Using System;Using System. Web;
Public class visitor: IHttpHandler {
Public void
1. CKEditor, formerly FckEditor, is a famous HTML editor that can edit HTML content online. CKEditor and UBBEditor are used by users.
Extract) to the js directory, "show all files", "include the ckeditor directory in the project", and reference
1. Data BindingCombox --> BingdSource --> ObjectDataSource
// Connect to the database** Background code:
T_UserTableAdapter adpter = T_UserTableAdpter ();Adpater. Call the User-Defined method of the T_User table
// Set the initial
Benefits of url rewriting:
1. Easy to search by the search engine (html-format website search engines have the highest priority, and seo optimization is better)
2. the url is simpler and easier to remember.
3. Hide the actual website path
In ASP. NET, the options in the CheckBoxList are all automatic width, and the width settings are not set for the attribute.
Refer to the minimum width style on the Internet,
Copy codeThe Code is as follows:/* minimum degree of parallelism */
.
Asp.net provides three powerful list controls: DataGrid, DataList, and Repeater. However, only the DataGrid Control provides the paging function. Compared with the DataGrid, DataList and Repeater controls have higher style customization. Therefore,
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.