Common components include aspjpeg, jmail, lyfupload, ease of operation, isapi_rewrite, etc. This article only describes these five components. Other components can be installed as needed, and the installation method is similar.
Download jmail.
Use
Code Determine the browser version used by the client
Response. Write (request. servervariables ["http_user_agent"]); (it seems that this is also available on ASP)
Or
Response. Write (request. useragent );
I have IE7 output:
Mozilla/4.0
In. net, after checking msdn for half a day, I found that dataformatstring can be used to implement this function, but how to set it does not work. Finally, I found that because 2.0 is for security considerations, you must also set htmlencode =
For example, your project is webapplication1 (URL: http: // localhost/webapplication1/webform1.aspx)
Request. applicationpath is/webapplication1
If it is a site, the system will directly return "/";
---------------------------------------------------
A few days ago, I encountered a situation where I submitted a form using Ajax and sent an email. So I wrote the following two functions to solve these two problems.
The first function converts the data in HTML into HTML entities, while the HTML
I use sharpziplib. DLL is generated after sharpziplib compression *. the rarfile can be decompressed normally, but if the file is compressed by right-clicking *. the rarfile contains the following error information: Wrong local header Signature: 0x21
Directory
I. Environment Configuration
Ii. Basic ASP operations on Excel
3. Generate a data table using ASP Excel
Iv. Generate a chart using ASP Excel
V. Solutions for viewing, downloading and deleting Excel files on the server
Vi. Appendix
Body
I personally like to use repeater. Because of its conciseness, this ajaxpager is targeted to repeater!
Step by step:
Code
Copy code The Code is as follows: [defaultproperty ("totalrecord "),
Toolboxdata (" ")]
Public class ajaxpager: webcontrol,
CopyCode The Code is as follows: using system;
Using system. Data;
Using system. configuration;
Using system. Web;
Using system. Web. Security;
Using system. Web. UI;
Using system. Web. UI. webcontrols;
Using system. Web. UI. webcontrols.
Assume that the current main table is a company table (company ID, company name, company type, company size), and the table is a department table (Department ID, company ID, Manager, contact number ), currently, a company has four departments. On
1. Brief Introduction
ID is the ID you specify during design. It is the programming identifier assigned to the control on the server. We often use this. controlid to find the control. Then, this controlid is the ID mentioned here.
Clientid is the
For example:
When we search for the footfall home in Baidu, the parameter behind the URL is
Http://www.baidu.com? CL = 3 & WD = % BD % C5 % B1 % be % D6 % AE % BC % D2
To restore % BD % C5 % B1 % be % D6 % AE % BC % D2 to Chinese, use the
In actual project development, I found a way to achieve the hierarchical effect using the gridview, and finally the following:
The following is the implementation code:ASPX page CopyCode The Code is as follows: Width = "100%" allowpaging = "true"
1. Vertical table sharding Vertical table sharding refers to splitting a table with 20 columns into two tables, one table with 10 columns and one table with 11 columns. This reduces the capacity of a single table, it can improve the query
Copy codeThe Code is as follows:
select a file
select a file (excel)
return
Dim upfile_5xSoft_Stream
Class upload_5xSoft
Dim Form, File, Version
Private Sub Class_Initialize
Dim iStart, iFileNameStart, iFileNameEnd,
If the encoding is not rigorous, I hope you will forgive me and give me some pertinent comments.
Integration needs to be added to the original project by Discuz! Provided by NT
DiscuzToolkit Language Pack (c #)
In addition, to facilitate integration,
GetRef Function
Returns a reference pointing to a process, which can be bound to an event.
Set object. eventname = GetRef (procname)
Parameters
Object
Required. Name of the object associated with the event.
Eventname
Required. The name of the event
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