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"
If Request.Form ("Selsub") <> "" Then
' If you choose the subject, enter the test interface
Marray=split (Request.Form ("Selsub"), ",")
' The number of the teacher who saved the test account
Session ("Teachid") =trim (Marray (0))
' Save the Test
Author: Liu Yufeng
Http://aspfans.yeah.net
Some time ago this site will replace the first page to asp+ program, in order to allow more friends to asp+ have a better understanding, so special will source code
Public, as for the comments on the code,
If Request.ServerVariables ("http_method") = "POST" and Request.Form ("Submit") <> "skip to" then
' If you submit the form content by post
Set Conn=server. CreateObject ("Adodb.connection")
Conn. Connectionstring= "Dsn=testsys"
Conn.
class
Instructor:
name
Achievements
ranking
Set Conn=server. CreateObject ("Adodb.connection")
Conn. Connectionstring= "Dsn=testsys"
Conn. Open
' Declare the SQL query statement, query the test scores from the database, and sort the
Calling a stored procedure in ASP
Dim objcnn
Dim objcmd
Dim Rs
Const O_ID=112
'-----Set up the Connection object----------
Set Objcnn=server.createobject ("Adodb.connection")
Objcnn.open "Driver={sql
ASP.net 1.x's client side postback script is this:
function __doPostBack (Eventtarget, eventargument) {
var theform;
if (Window.navigator.appName.toLowerCase (). IndexOf ("Netscape") >-1) {
Theform = document.forms["Form1"];
}
else {
Theform =
ASP spent two years, three months ago began to transfer to ASP.net, and completed the debut Job Center website (HTTP://JOB.N
ju.edu.cn), from one language to another, the process is always difficult, so I want to put me in the process of
Get HTML for a page
[Open a new window]======================================================================================================= =====
window.open (' filename ', ', ', ' toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=
Iv. development and use of ASP components:
1. Features of the component?
L Advantages:
n easy to invoke, save code
N High Security
n supports transaction processing, multi-component syndication
N Run Fast
n Upgrade, modify components without
Voting Results:
Set Conn=server. CreateObject ("Adodb.connection")
Conn. Connectionstring= "Dsn=vote"
Conn. Open
' Sort records in descending order of votes
Set Mreturn=conn. Execute ("SELECT * from Tbvote ORDER by votecount Desc")
If not
This is an old topic, because recently used, so there is no way to find information everywhere. Microsoft's Web site is provided by the database, always feel too cumbersome, but also said to use directly, but I did not try to succeed. I think it's
' 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
ASP common Paging ClassThe attributes and methods of a classThis is an ASP common paging class. You can use it to easily page the recordset, of course, there are many paging classes and paging functions on the web. This page includes properties and
Upload the form as follows:
Title:
Gender: Male and female
Belong to: Literature Sports Art Other
Whether to select:
Content:
Category: Classification 1 classification 2 classification 3 classification 4 Classification 5
Select File One:
Select
FrontBackgroundProtected string getstr (string boo){ If ("false". equals (boo )){ Return "unfinished ";} Else{ Return "completed ";} }Asp tutorial. net bindingDatabinder. eval binding does not require you to care about the data source (dataread or
ASP. NET is a basic component of the ASP. NET architecture. In essence, ASP. NET is. NETClass in the Framework. You can map the control Declaration on the ASP. NET page. Then, based on theirProperty to create HTML for the control. Because the class
To access the values of all controls in the DataGrid in ASP. NET, you can traverse each control in the DataGrid: The following is the aspx code and script code implementing this function [VB. NET ]:Inherits = "aspxWeb. DataGridAccessValues" %>
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