CopyCode The Code is as follows: function getcurrenturl ()
On Error resume next
Dim strtemp
If lcase (request. servervariables ("HTTPS") = "off" then
Strtemp = "http ://"
Else
Strtemp = "https ://"
End if
Strtemp = strtemp & request. servervariables
Problem:
1. the following error occurs when accessing the ASP page:
Active Server Pages error 'asp 0201'Invalid default scripting languageThis applicationProgramThe default script language is invalid.2. Check HKEY_LOCAL_MACHINE \ SOFTWARE \
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.
Problem description:
Unable to connect to publish custom string processing
ProgramCannot process output cache. The IIS instance id is "1772638466 ",
The URL is "http://xxxx.xxx.xxx/englishworld/default.aspx.pdf ".
For more information, see Help
1. Balanced group/recursive match (? 'Group') Name the content corresponding to the group and press the stack count;(? '-Group') returns the corresponding content named 'group' to the stack count.(?!) Assertion with Zero Width and negative direction,
Starting from ASP. NET 3.5, the. NET platform supports two serialization methods:
CopyCode The Code is as follows: 1. datacontractserializer
2. javascriptserializer
The former is mainly serialized Based on the Data contract (datacontract), through
CopyCode The Code is as follows: //
/// Export the data in the datatable to the specified Excel File
///
/// Web Page Object
/// datatable object containing exported data
/// name of the Excel file
Public static void Export (system. Web. UI.
Used in a previous work, pasted
Code Only the relevant code is retained, and few codes are found.
Upload page html/JS
Copy code The Code is as follows:
Process File Upload C #Copy codeThe Code is as follows: if (context.
How to replace the last comma in ASP with a Null String
For example, AAA, BBB, CCC, eee.
How can I leave the last comma unchanged?Example: AAA, BBB, CCC, eee.
How can I leave the last comma unchanged?Aaa, BBB, CCC, and Eee are not modified.
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"
The final result is as follows:
The core code is as follows:
In aspx
Code :
Copy code The Code is as follows:
Javascript is called to add or delete files. The Code is as follows:
Copy code The Code is as follows:
The
If you have a foresight, you will add a prefix to the table name and stored procedure name. For example, the Forum table name is bbs_xxx and the blog table name is blog_xxx; in this way, table sharding is easier. Speaking of this, you may think
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
RegExp objects support simple regular expressions.
RegExp object usage:
Copy codeThe Code is as follows: Function RegExpTest (patrn, strng)
Dim regEx, Match, Matches 'to create a variable.
Set regEx = New RegExp 'to create a regular
There are three main error types:
1. Compilation error:
This error is generally caused by the syntax of the Code. The ASP program stops running due to a compilation error.
2. Running error:
This error occurs when you are preparing to run ASP.
Usage: manually modify the name of the HTML file and the name of the desired ASP file. Then save the following code as 1.vbs, and double-click it in the same directory as 1.html.
Copy codeThe Code is as follows: html = "1.html"
Asp = "1.asp"
Set
Method 1:
Copy codeThe Code is as follows: string sKey = username. Text. ToString (). Trim (); // obtain the value of the given Key in the Cache.
String sUser = Convert. ToString (Cache [sKey]); // check for existence
If (sUser = null | sUser =
The server then reverse constructs the GridView into a able, adds a row to the DataTable, binds it to the GridView, and sends it back to the client...
Can it be simpler?
When using Ajax data to request data, the data is usually in a simple format,
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