Same point:1. The valid range of variables stored in both is the lifecycle of the entire application.2. Both can be stored in the object.
Different points:1. Application was used in the ASP phase, and later upgraded to. NET with cache, but for
I'll just stick to an example to illustrate:
Copy Code code as follows:
Form1.cs
Using System;
Using System.Collections.Generic;
Using System.ComponentModel;
Using System.Data;
Using System.Drawing;
Using System.Text;
In Ms Ajax, JS and C # interaction is a way to invoke WebService, the webservice can be either ASMX or WCF, regardless of the way, the system will automatically generate agent for Developers JS class. The implementation method is as follows:
1. Set
Method 1. Using label,
Front desk:
Copy Code code as follows:
' id= ' tb_search ' runat= ' server ' target= ' _ Blank "> Pop-up
") ' > Popup
Use tab, do not refresh main Page
Method 2.:asp:hyperlink
(1) Front desk: '
The first time you enter the ASPX page, you must read a large amount of data. Write to the page. Use all on the page to have to add the deletion of the operation, and only when the click of the Save button can be true to write to the database. So I
The main question is how to update the user's online list when you close the browser
The way to spread the internet is to keep the Ajax asynchronous send requests, when no longer request to be able to determine the user has closed the browser
Add Namespaces First
Copy Code code as follows:
Using System.Data.OleDb;
protected void Page_Load (object sender, EventArgs e)
{
if (! IsPostBack)
{
strfile = request.querystring["filename"];//file path passed from other pages
Copy Code code as follows:
/**************************************************
* All rights reserved: Mr_sheng
* FileName: EncryptHelper.cs
* File Description:
* Type description: Encrypthelper encryption Help Class
* Authorization
Copy Code code as follows:
Using System;
Using System.Collections;
Using System.Configuration;
Using System.Data;
Using System.Linq;
Using System.Web;
Using System.Web.Security;
Using System.Web.UI;
Using System.Web.UI.HtmlControls;
Specific how we implement the file asynchronous refresh, the current online has a lot of articles to solve this problem, but will use a lot of JavaScript, because I am still light coding skills, so there is no HD of the reason why, but in the
Copy Code code as follows:
radio button Columns
If GroupName is not set, the ID of the GridView is used as the GroupName
If DataField is not set, use rowindex as value
Allow dataformatstring format data to be set
Like what
Parent page:
Copy Code code as follows:
public class BasePage:System.Web.UI.Page
{
public int Hotelid
{
Get
{
return 1;
}
}
}
Sub page:
Copy Code code as follows:
public partial class
The code for the entire program is as follows:
Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using System.Text;
Using System.Web;
Using System.Web.UI;
Pop-up JavaScript small window
Window
One is a page conversion class, which is implemented by static function Changfile () to convert dynamic pages to static pages.
Copy Code code as follows:
Using System;
Using System.Data;
Using System.Configuration;
Using System.Web;
Recent reference to some information on the Web, initially reached the expected target (client access to upload progress, not found any good method, no implementation), the use of IFRAME to achieve the attachment of no refresh upload effect (in fact
1. Add silverlight-enabled WCF Service on the server side
Copy Code code as follows:
[ServiceContract (Namespace = "")]
[Aspnetcompatibilityrequirements (Requirementsmode = aspnetcompatibilityrequirementsmode.allowed)]
public class
1. Disable sessionBe sure to disable this if you are not using session-tracking. You can set the following in each asp.net page:
Enablesessionstate= "false"%>
Of course you can design the mode value off in the Web.config application configuration
Record Processing class
Copy Code code as follows:
Using System;
Using System.IO;
File
public class File
{
protected string FilePath;
File construction
Text path required for action
Public File (String filePath)
{
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