Can I include files dynamically?
April 23, 2001
What is dynamic include?
Answer
Let's start with one case:
' Get the province where the user is
Dim Province
Province = Request.Form ("province")
' The information in this province is shown below
%>
"--
ASP Simple Chat Room program two
var nothing;Response.AddHeader ("Cache-control", "No-cahce");if (! Session.Contents ("Chat_user")){Session.Contents ("chat_user") = "Guest";Session.Contents ("chat_time") = (new Date). GetTime ();}if
Using Global.asa correctly is a common problem for ASP developers. The main thing is to know when to use virtual application, when to use virtual directory, and to know their differences.
Virtual directories (dummy directory)
In short, virtual
ASP user Online program, this is My Learning ASP write a user online judge program.
Sub Check ()Dim ipCall Opensql ()Ip= "SELECT * from online where ip= '" &request. ServerVariables ("REMOTE_ADDR") & "'"Set Rs=server. CreateObject ("Adodb.recordset"
Do not change the original character display!such as select* replaced by & #115; elect*This will not damage the data, but also safe!Where I didn't think of it, please correct me.
Response.Write checkrequest ("str")
' ===============================
Using System;
Using System.IO;
Using System.Text;
Namespace superdata.asp
{
ASP Crack Program
Function:
1. Encrypt a file: encodefile (source file, target file), Encodefile (source directory, target directory, filename)
2. Decrypt a file:
Active Server Page technology provides application developers with intuitive, fast-based scripting
Fast and efficient application development means, greatly improve the development of the effect. But because ASP foot
This is the use of clear text
In fact, in asp.net programming, you don't have to call md5.asp to encrypt your data. Classes in dotnet: System.Web.Security.HashPasswordForStoringInConfigFile ()
public string MD5 (string Str,int code)
{
if (code==16)//16-bit MD5 encryption (32-bit
When you need to use MD5 encryption:
--------------------------------------------------------------------------------
MD5 (encrypted characters)
--------------------------------------------------------------------------------
Md5.asp
-------------
ASP authentication Code Source code
Call method, is b.htm page
Update
Let's save the following page as a 111cn.asp
Option ExplicitResponse.Expires = 0Response.AddHeader "Pragma", "No-cache"Response.AddHeader "Cache-ctrol",
function Delectimagefile (newsid,i)
Set Delectfile=server. CreateObject ("Scripting.FileSystemObject")Currentpath=server. MapPath ("images/news/")Filename=currentpath & "& NewsID &"-"& I &". gif "
If Delectfile.fileexists (FileName)
Simple Introduction
ASP is so simple that many developers don't think about error handling, and handling errors correctly can make your application more reasonable. I've seen many commercial Web sites written in ASP, most of them ignoring error
The code is as follows
Copy Code
Dim Url,html,timeTime=request ("Time")Url= "Http://weather.cncn.com/get_weather.php?action=get_city&time= '" &time& "'"//Read the weather information on the CNCNHtml = Gethttppage (URL)Html=replace
Windows 2003 IIS6.0 unable to execute ASP solutionEnable Asp supportWindows Server 2003 is installed by default. IIS 6 is not installed and must be installed separately. After IIS 6 is installed, ASP support must be enabled separately.Enable Asp and
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