'Filename must be input
If request ("FILENAME") = "" then
Response. Write " error: filename is empty! "
Else
Call downloadfile (replace (Request ("FILENAME "),"\",""),"/",""))
Function downloadfile (strfile)'Make sure you are on the latest MDAC
1: Use the string. replace function, but the case is not supported.
2: replace system. Text. RegEx with the regular expression "regexpoption" to check whether case sensitivity is supported.
3: Use string. substring and + to indirectly replace small
Memory is currently very cheap-therefore, the entire application is intelligently deployed
Program To achieve high performance. Caching can mask many errors. caching is a way to achieve "good enough" performance without having to spend a lot of
Several common methods:
Part 1: First, let's talk about how to solve the file upload size limit in Asp.net. We know ASP by default.. Net file upload size is limited to 2 MB. In general, we can change the web. the config file defines the maximum
Of course, this should be a normal filtering method, and there is also a final method to filter HTML tags, which is to replace and not display all the characters in a pair of angle brackets and angle brackets, this method overfilters the content of
1. open a new window
This is simple: Response. Write (" ");
2. Adjust the size and position of the window
Response. Write (" ");
Response. Write (" ");
3. Close the window
// Close the current window and prompt the user to close it. Yes: close. No:
Leave a message if you cannot understand it.
Generate random code class: sigowayrandom. CS
CopyCode The Code is as follows: using system;
Namespace rongyi. model. Common
{
///
/// Summary of sigowayrandom
///
Public class sigowayrandom
{
#
Modify file name
Use the GetFile function of "FileSystemObject (File System Object)" to get a "file object", and then modify the name attribute of this "file object ".
CopyCodeThe Code is as follows: Set FSO = server. Createobject ("scripting.
1. use ie printing to call window. print (). However, this method cannot be distinguished when there are reports on the page and other controls. It cannot only print the report content;
2. Self-write Printing
Code
The Code is as follows:
Copy
The storage process is completed using the select top plus not in method, and the speed is quite fast. I tested a million-level data volume and generally queried it in 1 second. I will post it for your discussion, check whether there are any good
In this article, I will use C # To write a small
Program , Translation:
The idea is as follows:
1: Send post (or get)
2: Get the post (or get) Response
3: The regular expression matches the value we want.
Post (or get) function:
CopyCode The Code
CopyCode The Code is as follows:
Option explicit
Dim startime, endtime, Conn, strcon, DB
Startime = timer ()
Dim strsqlservernameDim strsqldbusernameDim strsqldbpasswordDim strsqldbname
'Enter the specific database parameters.'Timeout '-------
When the address bar does not contain the parameter "ID:
CopyCodeThe Code is as follows: request. querystring ["ID"] = NULL
Convert. tostring (request. querystring ["ID"]) = NULL
Note that this will cause an error:Request. querystring ["ID"].
'******************************
'Function: checkchinese (strng)
'Parameter: strng, character to be verified
'Description: checks whether it is a Chinese character. The return value is true if it is a Chinese character. Otherwise, the return value
'*************************************
'Check whether only English and numbers are included
'*************************************
Function IsvalidValue (ArrayN, Str)IsvalidValue = FalseDim GNameFor Each GName in ArrayNIf Str = GName
This problem is rarely seen at ordinary times. Generally, data is stored in a table before data binding. In fact, if there is a relationship between tables, it is also possible to bind multiple tables. The following is an example of binding two
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