In writing ASP.net projects often encounter the issue of Rights management, in general, is in every page to add permission control code, in fact, by writing a page base class (Pagebase), and then all the pages that need permission to inherit this
Some time ago the author in the development of the need to dynamically create Web Components, this thought is a trivial matter, who knows that easy to do when it is difficult to do. There's really a little problem in there. The following is a
In one. NET application, you can greatly enhance the functionality of your application by adding the properties and behaviors you want to the original control, or even creating your own custom controls. In asp.net, we can increase the functionality
The checkbox selection component is a common component in a program. This component is used in programming, and is usually not used in any way, often in the form of multiple such components. If you are using multiple checkbox components in a asp.net
Author: loster (oicq:181306) if reproduced, please do not remove this trip, thank you.
Now many Web sites need to enter the login verification code, the verification code is generally in the form of pictures displayed. In this way, can improve the
The code is as follows
Copy Code
Option ExplicitFunction striphtml (strhtml)' Strips the HTML tags from strhtmlDim objRegExp, StroutputSet objRegExp = New RegexpObjregexp.ignorecase = TrueObjregexp.global = TrueObjregexp.pattern = ""'
'=====================================================================
' 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
IIS defaults to processing VBSCRIPT, however we can see many examples of explicitly setting script language types through statements. The following test analyzes the performance impact of this statement.
Dim FirstName
...
/app2/language1.asp
1. How to use ASP to determine the virtual physical path of your site?
Answer using the MapPath method
The physical path to this virtual website is:
2. How do I know the browser used by the user?
To use the Request object
1. oncontextmenu= "Window.event.returnvalue=false" will completely screen the right mouse button
no available for table
2. deselect, prevent copying
3. onpaste= "return false" is not allowed to paste
4. oncopy= ' return false; ' oncut= ' return
One technique: Improving the efficiency of using the request collection
Accessing an ASP collection to extract a value is a time-consuming process that takes up computational resources. Because this operation contains a series of searches for
What is the most efficient way to refer to a recordset field value?
10.1 Test
So far we've been referencing field values in a recordset by name. Because this method requires every time to find the appropriate field, it is not efficient. To prove
Avoid excessive use of embedded ASP.
Always combine multiple consecutive Response.Write into a single statement.
Never use functions to encapsulate Response.Write in order to add CRLF.
If you must format the output HTML, add the CRLF directly to the
’*************************************************************
' Please keep this declaration information when forwarding, this statement does not affect your speed!
’*************************************************************
’********************
Should you create a separate connection object when using recordsets?
To correctly answer this question, we must analyze the tests under two different conditions: first, the page has only one database transaction; second, the page has multiple
Curve Statistics '''''''''''''''''''''''''''''''''''''''''''''' Function: ASP read database tutorial data generation Statistics Line chart' Development: Wangsdong' Address: www.111cn.net' Support original, keep this information, thank you''''''''''''
1, the role of less than the number is actually small equal to the role2, the book said that the formation of a range of random number formula is(-+1) *rnd+But the actual operation result is: lower limit--upper limit +1(-) *rnd+ is the correct3, the
Public Function datetostr (datetime,showtype)Dim Datemonth,dateday,datehour,dateminute,dateweek,datesecondDim Fullweekday,shortweekday,fullmonth,shortmonth,timezone1,timezone2timezone1= "+0800"Timezone2= "+08:00"Fullweekday=array ("Sunday", "Monday",
' ======== get the URL with port, recommend to use ================
Function Get_scriptnameurl ()
If Request.ServerVariables ("server_port") = "Then"
Get_scriptnameurl= "http://" & Request.ServerVariables ("SERVER_NAME") &lcase
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