asp.net| data
Using System;Using System.Data;Using System.Data.SqlClient;......Namespace Xxxx.xxxxxxx{A summary description of XXXXX.public class Xxxxx:System.Web.UI.Page{protected System.Data.DataRow Dr;protected System.Data.SqlClient.SqlConnection
Mingcheng=request ("Mingcheng")
Sec=request ("Score")
Session ("Mingcheng") =mingcheng
Session ("SEC") =sec
If session ("ID") = "" Then
Response.Redirect "Qzhuce.asp"
Response.End
End If
Dim time1
Sec=request ("Score")
Set conn = getmdbconnection
asp+|css| Random background--When you enter the page, randomly select a picture from the designated picture folder to display as the background. The method described here is implemented with
server| Error | server
When we execute some programs, such as the recursion of the Forum, the ASP program often executes errors outside of the accident. This type of accidental occurrence is rare, but once it occurs, it causes the ASP code to
Pagination | data | Statements see the Iron fist stored procedure "To achieve TENS data paging display!" "I think it's good, I changed it to ASP code."
' Paging SQL statement generates code
Function Getpagesql
Server | Data
Dim intbilltotal, Intbilltype, Intbillvalue, Dtatoday, I, Strbillcode
Rem Single record number (reserve amount)
Intbilltotal = Request. Form ("bn")
Intbilltotal = Tonum (intbilltotal, 10)
Intbilltype = Getopertype ()
Intbillvalue =
Selected
A lot of netizens ask, deep learning website navigation and depth learning the whole station system background management can add bulk deletion function, how to add:is to list n articles or Web site information, each article or URL before
asp.net| thumbnail image
asp.net in the article thumbnail, and in the picture to add a picture plate and other information
Object defining the Image classDrawing.image Image,newimage;Picture pathprotected string ImagePath;Picture typeprotected
Dynamic
The ASP itself does not support dynamic inclusion files, and the current dynamic inclusion is through the FSO to merge the included files into the main file and then run. There are also the common include files in the form called
Program | programmer
Database connection:
Set Conn=server.createobject ("Adodb.connection")
Conn.Open "Driver={microsoft Access Driver (*.mdb)};d bq=" &server.mappath ("Database name")
%>
To open a database:
Exec= "SELECT * From database
web| Data | database | User License for site assignment table
Now, let's create a table for the database. To do this, click on the Webpages database node and select New Table (建新 table) from the Action menu item to complete the Build dialog box.
excel| data I recently made a project, the requirements of the project is to the ASP page in the library of the data extracted directly into the form of Excel, just at the beginning of my thinking for the good to finally do it out, here and everyone
Use session to maintain authentication of the owner, which must require that the client browser's cookie be opened. Because the session is implemented through cookies. Here, the Kanban ID is assigned to the session variable Beenthere, indicating
Ajax|asp.net
The following code can be used absolutely, or you can implement multilevel menus ....
============================
WebForm1.aspx
private void Page_Load (object sender, System.EventArgs e) { // Place user code here to initialize
asp.net
Website Construction, will encounter the most commonly used user management and Operation permission set verification, although this is a very common management operation, but it is not easy to do perfect. A lot of references have been made
Asp.net| Verification Code
Often see in the forum to ask how to implement verification code of the post, in fact, the article on the verification Code on the site have a lot, but many articles only tell how to output a random generation of numbers
Traversal | Traverse Directory | function
' I wrote a function that traverses the directory and the files in the directory,%>function Bianli (path)Set Fso=server. CreateObject ("Scripting.FileSystemObject")On Error Resume NextSet OBJFOLDER=FSO.
Asp.net| Page | sort
To continue sorting after the paging is done, you will achieve this effect:
For example, a total of 15 records, each page shows 10
Then sort: The first page sorts the top 10 records, and then the second page is sorted after five.
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