Basic Asp object Asp (Active Server Page) is an object-oriented programming language similar to VB. Here, we do not want to detail some basic concepts such as objects, but directly introduce their language features, so that developers can skillfully
1. How to use Asp to determine the virtual physical path of your website
A: Use the Mappath method.
The Physical path to this virtual website is:
2. How can I know the browser used by the user?
A: Use the Request object method.
StrBrowser =
When you query a database, you will often encounter this situation:
For example, you want to query the user name and password in a user database, but the user name and password exactly contain special characters, such as single quotes, "|, double
IsArray Function ReturnBoolean indicates whether a variable is an array.
SyntaxIsArray (varname)The varname parameter can be any variable.
DescriptionIf the variable is an array, the IsArray function returns True; otherwise, the function returns
Custom functions commonly used for processing file uploads and deletions in ASP:'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''All custom VBS Functions'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''
1. Question: Is ASP a programming language?A: ASP is not a programming language, but a development environment. ASP provides an environment for executing commands on the server. It uses special symbols ) to distinguish between HTML and commands that
After learning about the above attributes and methods of the Recordset object, let's take a look at how to use them to achieve our paging display purpose. First, we can set a value for the PageSize attribute to specify the number of rows that
This article provides some learning and code download URLs for ASP programmers.
ASP cool technical network: http://www.aspcool.com
ASP/ASP.net Pacific College: http://www.pconline.com.cn/pcedu/empolder/wz/asp/index.html
ASP dynamic network pioneer:
1. How to minimize, maximize, and close the window Answer: 2. Static Page Cache A: htm webpageOr Asp Web PageResponse. expires =-1Response. expiresabsolute = now ()-1Response. cachecontrol = "no-cache"Php webpageHeader ("expires: mon, 26jul199705:
1. Prevent users from accessing the page directly. Prevent Self-made forms from being submitted and directly accessing the page through links)Function checkPrePage ()Url = request. ServerVariables ("HTTP_REFERER ")Url = trim (replace (url, "http ://"
If RS technology is used in the design of a website, it will play a lot of role, especially its biggest advantage. You can call the server code without refreshing the new page ). It is precisely because of this that you can process the database data
Unction encrypt (ecode)Dim textsDim I
For I = 1 to len (ecode)Texts = texts & chr (asc (mid (ecode, I, 1) + I)NextEncrypt = textsEnd functionFunction decrypt (dcode)Dim textsDim IFor I = 1 to len (dcode)Texts = texts & chr (asc (mid (dcode, I, 1)-I)
Method 1: register the Java class as an ActiveX component
Step 1:Create a Java class named Test. javaPublic class Test{Public String getWord (){Return "Hello World ";}}
Step 2:Compile it into a class file, copy it to the System Disk: \ WINNT \
I. Principles
The Application_AuthenticateRequest event and Application_BeginRequest event in global. asax in. net are triggered every time the aspx file is accessed. However, in Application_BeginRequest, ticket tickets with FROMS authentication
1 .~ UsageIn general, we use. /.. /This relative path is used to determine and plan our resources (such as slice and resource files). However, in this way, errors may occur when we deploy the application. if an image is included in the ascx control
Now ASP., programmers can focus on the design of the main program.
ASP. NET has six public verification controls:
Widget name Function DescriptionRequiredFieldValidator is required for field verification) used to check whether input values
"No refreshing page" is just an inaccurate effect description, but there are other methods to achieve this effect). To be more precise, call a method on the server using JavaScript on the page, then process the returned data. The most standard
In WEB development, some code is often repeated in many places, such as the navigation bar, user logon/registration, and some fixed topics on the home page. These reusable codes can be written as a common module for reference. This saves development
(1). DescriptionBecause the thread can only execute non-parameter methods, sometimes the thread needs to execute "with parameter methods"This example shows how to use the encapsulation class to implement "thread call with parameter method"(2).
Code hidingAlthough the hidden model of the Code is different in 2.0, its syntax has been slightly changed. In fact, this change is very subtle. If you do not check it carefully, you cannot even notice it. Figure 1 shows the new Code hiding syntax.
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