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. The following are also the common inclusion files in the form ,
Example: Input 12345, the program gives: one million thousand thousands of restaurants to collect Wu
Example: Enter 10023040, the program gives: one thousand Wan another to pick up
One of the solutions (tested in SqlServer2000):
CREATE FUNCTION Fun_
Page pagination:
Copy Code code as follows:
/* Pagination Lookup Data * *
CREATE PROCEDURE [dbo]. [GetRecordSet]
@strSql varchar (8000),--query SQL, such as SELECT * from [user]
@PageIndex int,--query as page number
@PageSize
Simple counters made with application and session notes
If IsEmpty (Session ("Conn")) Then
Application.Lock
Set Counterfile=server.createobject ("Scripting.FileSystemObject")
Set Temp=counterfile.opentextfile (Server.MapPath ("Count.txt"),
Save As Runasp.asp run. Account password Admin, login after the input code can be implemented!!
Response.buffer=trueDim spassword,susernameSusername= "Admin"spassword= "Admin"Dim sqlmutistrDim iDim actionAction=request.querystring ("Action")
IF
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. The following are also the common inclusion files in the form , called
. Net website architecture design (7) Network Security. Net website architecture (7) network security when it comes to network security, you must first talk about the most common web site vulnerabilities. Illegal Input
Unvalidated InputIgnoring the
Paging:Copy codeThe Code is as follows:/* Query data by page */Create procedure [dbo]. [GetRecordSet]@ StrSql varchar (8000), -- Query SQL, such as select * from [user]@ PageIndex int, -- query the current page number@ PageSize int -- Records
========================= Page ================================ ====Copy codeThe Code is as follows:/* Query data by page */Create procedure [dbo]. [GetRecordSet]@ StrSql varchar (8000), -- Query SQL, such as select * from [user]@ PageIndex int, --
Recently, I found a cool page effect on the LBS forum. It is lightbox. The preview of the image processed in this method is cool. You can click the figure below to try it out. The specific method is later
First, upload all the image files in the
After the input text is controlled using Textbox, the data cannot be output in the original typographical mode after being inserted into the database.
When writing data to the database, convert the input text. Private Function formatstring
On this basis, this article adds some functions that are suitable for Chinese websites. Some functions may not be added yet. If you are interested, you can add a function on this basis, but don't forget to share it!
Class stringoperations
'**********
Common stored procedures collected are commonly used in MSSQL. You can choose to use them as needed.
========================= Page ================================ ====
/* Query data by page */Create procedure [DBO]. [getrecordset]@ Strsql varchar
Download Sample Code
You can write a hosting application for your own experience-you may feel it is slow. Your application is functional normally, but its performance has many shortcomings. If you want to diagnose performance problems and solve
This article mainly introduces how PHP can handle Json string decoding and return NULL. it uses an example of a filter function to demonstrate how to handle json return errors, and lists the common causes of this error. if you need a friend, refer
Some symbols cannot be directly transmitted in the URL. If you want to pass these special symbols in the URL, you need to use their encoding. The encoding format is % plus the characters' ASCII code, that is, a percent sign %, followed by the
If WScript.Arguments.Count <> 1 Then
WScript.Echo "Example:cscript" & WScript.ScriptName & "Www.sohu.com"
Wscript.Quit
End If
Url= "Http://www.seologs.com/ip-domains.html?domainname=" &wscript.arguments (0)
Set oxmlhttprequest = CreateObject ("Msxml2
Purpose: Article table key word query
Query format: Baidu Google Baidu good or Google good Baidu +google (also can not enter the conditions of all inquiries)
Function searshsql (tname,lname,str) ' tname-table name lname-column name str-query
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.