///
/// Replace special characters in HTML
///
/// the text to be replaced.
/// the replaced text.
Public String htmlencode (string thestring)
{
Thestring = thestring. Replace (">", "> ");
Thestring = thestring. Replace ("Thestring = thestring.
You can
ProgramThe server. Execute (PATH) method is used to call the ASP program specified by path. After the called program is executed, the original program is returned and Subsequent commands are continued. This function is similar to # include.
Accept macro restriction: the file must exist and be pre-compiled (no matter whether the preceding conditions are met)
This is often the case where you need to include different files according to different requirements. For example, you need
In iis6.0 of Windows2003, after installing. netframework1.1 and. netframework2.0, the newly created ASP. NET application
Program View Properties, ASP. NET tab appears, where you can change the framework on which the web application runs.
Using the classes provided by. net, such as drawing. bitmap and drawing. bitmap, you can easily process images. This includes watermarking, enlarging, downgrading, and other operations.
Public partial class webform4: system. Web. UI. Page{//
This method is suitable for websites that are relatively concentrated on pages with the same content, and cache files are automatically generated (equivalent to reading static pages but increasing files ). If the access is not concentrated, the
/* ------------------- ASP document reference set -----------------------*/
* --> Author: Crawler
* --> Time: 2007-4.28---2007-4.30)
* --> Contact: caolvchong@gmail.com
* --> Document function:
1. I reviewed ASP and deepened my understanding of ASP
HTTP-REFERER this variable has become increasingly unreliable, completely can be forged out of the east.
Here are the forgery methods:
ASP/Visual BasicCode Dim HTTPSet HTTP = server. Createobject ("msxml2.xmlhttp") '// msxml2.serverxmlhttp can
Previous
Article We talked about how to dynamically add form elements. This time we will talk about how to process the data transmitted from these dynamically added form elements! I will not elaborate on how to dynamically add form elements here! I
Code As follows:
JScript
Copy code The Code is as follows: function generateguid (){
VaR typelib = new activexobject ("scriptlet. typelib ");
Return (typelib. guid );
}
VBScript Copy codeThe Code is as follows: function generateguid ()Dim
'Function name: gethtmlcontent' parameter: No --> Number of characters to be obtained, txtcontent --> string to be processed'Function: truncates n HTML-containing characters from a string. The current implementation method is not complete. The
We need to use this function. How can we test it?
Code
Assume that the address is:
Http://dxy.com: 8082/test/geturl. asp? Param-VR52tmx3syn03777.html
Method 1: simple. There is no parameter, and there is only one virtual path.Copy codeThe
Analyze the leeching principle directly: Check the data sent by HTTP intercepted by httpwatch.
GET/IMG. ashx? Img1_svn_work.gif HTTP/1.1Accept :*/*Referer: http://www.jb51.net/Accept-language: ZH-CNUA-CPU: x86Accept-encoding: gzip,
default. asp
CopyCode The Code is as follows:
Ajax-sample1
// be sure to encode this page as a UTF-8, otherwise, garbled characters will appear.
Ajax application instance: Registration Module
ID:
Password:
when a user with a
Function getipvalue (clientip) 'obtains the client's IP address conversion and growth integer. The returned value is getipvalue.
On Error resume next
Dim strip, array_ip
Strip = 0
Array_ip = Split (clientip ,".")
If ubound (array_ip) <> 3
In many cases, this week's statistics are required for database query statistics.
I don't want to hand over the computing task to the data here.
So I wrote a small function myself to get the time of Monday and weekend of this week. When the database
/*************************************** **************************************** ***
*
* Function Description: backs up and recovers SQL Server databases.
* Author: Liu gongxun;
* Version: V0.1 (C #2.0); time:
* When using SQL Server, reference the
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