'================================================ ==============
'Function name: replacesaveremotefile
'Usage: replacing and saving remote Images
'Parameter: constr ------ string to be replaced
'Parameter: savetf ------ whether to save the file;
That is, the user is prompted to download the file instead of opening some files in the browser. Note that the following
Code After copying to an ASP file, do not add any non-ASP code on the page, such as the Code of the HTML and JavaScript clients.
CopyCode The Code is 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;
1. Disable sessionIf you cannot use session tracing, disable it. You can set the following in each Asp.net page:
Enablesessionstate = "false" %>
Of course, you can applyProgramThe value of mode is off in configuration settings.
2. output
CopyCode The Code is as follows: Strfilename = strfile
Response. Buffer = true
Response. Clear
Set S = server. Createobject ("ADODB. Stream ")
S. Open
S. type = 1
On Error resume next
Set FSO = server. Createobject ("scripting. FileSystemObject
Format: Download. asp? Filename = Name of the file to be downloaded
CopyCode The Code is as follows: dim stream
Dim Contents
Dim filename
Dim fileext
Const adtypebinary = 1
Filename = request. querystring ("FILENAME ")
If filename = ""
1. Create a page for download processing, such as download. aspx. There is nothing in it.
2. Add a downloadhandler class that inherits from the ihttphandler interface and can be used to customize HTTP processing.
Program Process HTTP requests
1. Create a page for download processing, such as download. aspx. There is nothing in it.
2. Add a DownloadHandler class that inherits from the IHttpHandler interface. You can use a custom HTTP handler to synchronously process HTTP requests.
Copy
The so-called "Network hard disk" means to provide the disk space of the server to users. Users can upload, download, and delete files and create and delete folders on the Internet. You can also share files over the Internet. The actual requirement
This plug-in was introduced in the previous JQuery template plug-in-jquery. tmpl. Sometimes we need to use dynamic ajax to load templates or data, and load different templates and Data Based on url parameters or other information. I have this
Aspx
Copy codeThe Code is as follows:
Border = "0">
announcement:
Background Util/MainUtil. aspx. cs outputs the corresponding HTML data
Using System;
Using System. Collections;
Using System.
Tip 1: Improve the efficiency of using the Request setAccessing an ASP set to extract a value is a time-consuming and computing resource-consuming process. This operation contains a series of searches for related sets, which is much slower than
+ ----------------- +
| Taote ASP Trojan scanner |
+ ----------------- +
This program can scan all files of the specified type (asp, cer, asa, cdx) on the server to find suspicious Trojans. The system isolates the scan program from the virus
First, create a class named watermarkhandler. Implementation of this class: ihttphandler interface. Add the following code to the processrequest method:
Then, add
Finally, configure IIS. Select "properties" of the website. In the
// Read temporary filesGYYW. DA. Common. Base_SqlDataBase daBZDM = new GYYW. DA. Common. Base_SqlDataBase ();DataSet dsBZDM = daBZDM. GetDataSetBySql ("select QCDM, MC, GG from WG_BZDM where QCDM like '200 '");
// Use the Data in the virtual
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.