Set Rs=server.createobject ("ADODB. RecordSet ")
Sql= "Select Menu_name, Menu_link, Menu_bgcolor, menu_color,id from enter_individual WHERE (parent_id = (select IDs from ENT er_individual WHERE menu_flag = ' root ') "' Query gets root node
Rs. Open
, ASP dynamically generated content in what way to output the highest efficiency?
Author: Cactus Studios This article hits: 123
Generating dynamic content on the server is one of the main reasons to use ASP, so the first test project we choose is to
Iv. What is the impact of annotations in ASP code on execution efficiency?
Many HTML developers know that adding HTML annotations is a bad habit. This is because: first, the annotation increases the amount of data transferred; second, the HTML
1. How to minimize, Maximize, close windows
Answer:
2. How to Still page cache
Answer: HTM Web page
or
ASP Web page
Response.expires=-1
Response.expiresabsolute=now ()-1
Response.cachecontrol= "No-cache"
PHP Web page
Header
Author: Green Apple Studio compiled
Should buffers be turned on?
To start the buffer with a script program
When you include Response.buffer=true at the top of the ASP script, IIS caches the contents of the page.
Response.Buffer = True
Dim FirstName
.
1. Prevent users from direct access to the page (prevent self-made form submission, direct access via link)
function Checkprepage ()
Url=request. ServerVariables ("Http_referer")
Url=trim (replace (URL, "http://", ""))
Url=trim (Url,len (Request).
1. Classification: Grammar Application
Problem Description: Find the number of characters between two string occurrences
Solution:
function Findstringtimes (strcontent,start_string,end_string) ' start_string and end_string number of characters out
1. Table sorting
Table sorting is for tables, regardless of table generation. That is, no matter how the table is generated in the same way as the sort. This is the sort function, very simple.
In ascending and descending order, incoming parameters
1. About Folding line:
Dffadfdaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqsfdffadfdasfdffadfdasfdffadfdasfdffadfdasfdffadfdasfdffadfdasfdffad fdasfdffadfdasfdffadfdasf
The point is "Word-wrap:break-word" to remove it and then see it.
2.
Common JavaScript function
//=========================================
Input data validation
Checking for null values
function Funcheckempty (m_text) {
var strtmp=m_text
if (strtmp = null | | strtmp = = "") {
return False
}
return True
}
Check the
The application of disk ID in the ASP source anti-copy
(Kong Xiangjun, Su Yujuan July 26, 2001 17:07)
Since the advent of ASP (Active Server Pages), ASP technology has been popular with more and more network programmers as it can create robust,
A reader who is learning to build a Web site may be worrying about the security of the site; maybe you're building a non-publicity website, and only system users can access your site. If you are compiling an ASP page, you can easily achieve this by
Database File calling skills(1) In fact, no matter which Access database you change to, the steps for connecting to the database and reading table records are the same. The variable is the name of the database file and the table name, therefore, you
In the above code, it is called GetSQLRecordset and the file name is ADOSQLFunctions. asp.Now, you can use this file to call any Access database connection and filter the table records. Take the Friend. mdb file as an example to list all the records
'Asp anti-injection solution'Special page processing'Because some pages are passed through streaming (for example, a form containing a file to be uploaded)'An error occurs if you use a single exhaustive Form object.'So you need to filter out these
IntroductionThe next release of Microsoft & reg; Visual Studio. NET includes the DataGrid Web control (as part of the Server control's Active Server Page + (ASP +) suite ).This control provides the HTML representation function based on the content
Step6Page. cs:Namespace Samples {...Public class Step6Page: Page {// Update the selected author and reload the title corresponding to the selected content// GridProtected void LoadTitlesGrid (){UpdateSelection ();TitlesGrid. DataBind (); }//
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