Now I'll summarize some ways to clear the page cache as follows:
1, in the ASP page first join
Response.Buffer = True
Response.ExpiresAbsolute = Now ()-1
Response.Expires = 0
Response.CacheControl = "No-cache"
Response.AddHeader "Pragma", "No-cache"
Set Mrs=server. CreateObject ("Adodb.recordset")
Mrs. activeconnection= "Dsn=testsys"
If Request.ServerVariables ("http_method") = "POST" Then
' Write the students ' answers to the database
Mrs. Source= "SELECT * from Tbanswer"
Mrs. open,,1,3
Mrs.
This is used to serve an E-commerce site, because the site's sales are virtual things, such as the game Recharge card ah what, Support online payment. Over time, there are a lot of people want to play the site's idea, some boring person is always
'=====================================================================
' Xdownpage ASP version
' Version 1.00
' Code by zykj2000
' Email:zykj_2000@163.net
' Bbs:http://bbs.513soft.net
' This program can be free to use, modify, I hope my program can
If Request.QueryString ("act") = "Add" Then
' If the request joins the question content, the Form1 submits the page to taddquestion.asp
Response.Write ""
Else
' If you ask to modify the content of the question, the page submitted by Form1 is
Sqlultimate.asp--part B
' ++++++++++++++ FK Sub +++++++++++++++++
SUB FK (Xdbname, Xuserid, Xpassword)
Dim STRCONN,CONNTEMP,RSSCHEMA,PKT,PKC,FKT,FKC
Const Adschemaforeignkeys = 27
strconn = "Provider=SQLOLEDB.1;Data source=" &strServer& ";" &
This article only does the method discussion.
-----------------
Can collect the data we all can gather, then we begin to compile the ASP the statistic page.
This page we call the Count page, counter.asp
This ASP code we need to get it to collect
' After submitting the answer, first of all, the answer to the statistics, how many questions
' How many points should you get, and then write the statistics to table score (stid,score,teachid,sub),
' Then delete the corresponding field in the table
Trim, while deleting the space before or after the string without deleting the middle space as an instance
Dim txttxt= "Www.111cn.netis A beautiful day! "
document.write (Trim (TXT))
The result is www.111cn.net Isa beautiful day!
LTrim
Function closehtml (strcontent) ' ************************************* ' auto-close HTML ' ************** Dim arrtags, I, Openpos, Closepos, Re, Strmatchs, J, Match Set re = New RegExp re.i Gnorecase = True Re. Global = True Arrtags = Array
Nothing to write a simple user login code, also posted it
MyName =html_encode (Request.Form ("myname"))Mypass =html_encode (Request.Form ("Mypass"))If myname= "" or mypass= "" ThenResponse.Write (" ")Elseif Len (myanme) >15 or Len (mypass) >15
Asp.net Getting Started Tutorial: ASP. NET SortedList object tutorialSortedList object features a combination of ArrayList objects and hash table objects. ExampleFor example, 1-S ortedListR adioButtonListFor example, 2-S ortedListR adiobuttonListFor
Match double-byte characters (including Chinese characters)[^ X00-xff]Regular Expression Matching Chinese characters: [u4e00-u9fa5]Class class1{ Static void main (){ String s = "chinese ";Regex regx = new regex ("[u4e00-u9fa5] + ");Match m = regx.
Asp tutorial. net I/o create a directory list instanceThe following code example shows how to use the io class to create a directory list.[C #]Using system;Using system. io;Class directorylister{Public static void main (string [] args)
In asp tutorial. net c #, obtain the function of the current time in milliseconds. The best method for the following date function applications should be the fifth one./*Method 1Datetime. now. tostring ("yyyy-mm-dd hh: mm: ss: fff ")Method
Asp.net multiple methods for calculating the number of controls in a panelForeach (control c in panel1.controls){If (c is textbox) {If (c. clientid = "known id "){} }}'Method 2Panel1.controls. count;Foreach (control con in panel1.controls) {
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