ASP.net Some of the features in the Ajax library, and how to integrate with jquery. First look at the use of the client controls in the ASP.net Ajax library (The following example is a watermark textbox):
The following is a referenced content:
Note: This event, write not write on is the same. Like Application_End and Application_OnEnd are the same
The application usage in asp.net is the same as the ASP, almost nothing to say, but it has two more particularly useful events,
There are two common ways to generate thumbnails:
One is a small picture scaled to a fixed size
Second, zoom into equal proportions of small pictures
The disadvantage of the first method is that it distorts the picture, such as a slim mm becoming
Microsoft VBScript Runtime Error 800A01B6
Object doesnt support this property or Method:Response.Charset
Check for error code:
Response.Charset = "GB2312"
This line of code is mainly to solve the Ajax using get data, Chinese garbled problem.
How to debug an ASP's environment:
Learning Objectives: Install the Environment for debugging ASP, and debug the first simple program.
Because we learn the purpose of ASP is to build a Web site, then the general custom is to build all the files
The IsClientConnected property is read-only, indicating whether the client is connected to the server since the last call to Response.Write.
This property allows the user to have more control when the client is not connected to the server. For
Read the data with Rs.Open sql,conn,1,1
Modifying data: Rs.Open sql,conn,1,3
Delete data: Directly to Conn.execute ("Delete * from new where id=1").
The Rs.Open syntax is as follows: Rs.Open Source,activeconnection,cursortype,locktype
Source is
code is as follows
Features: Check if system components or components are successfully installed Parameters: Component name Function isobjinstalled ( strclassstring) on Error Resume Next
For a lot of interesting reasons, ASP. NET program, although you can append AssemblyInfo.cs files to the App_Code directory, the version number in the file is always not displayed correctly in front of the user.
If you try to use the following
ASP mainly has five built-in (built-in) objects: Server, Request, Response, application and session. Now we'll explain them by example. The first is the most commonly used response object.Example 1 using response to output HTML documents in a Web
Use ASP.net to realize the text watermark, here introduces a simple method, although simple, but feel very practical, and asp.net novice also easy to understand, easy to modify and perfect. Here's the code, followed by a description of how to use:
Just copy the Code table to a text file and save it in a Web site ("/Global.asa") in the home directory.
The first visitors to our web page, Global.asa will be executed, so application ("Activevisitors") on line Line 4 will gain value equal to "0"
i=0 set Rs=server.createobject ("Adodb.recordset") sql = "SELECT * from Table order by date Desc" Rs.Open sql,conn,1,1 if Rs.eof then %> no article Else do, not rs.eof %> i=i+1 if I>=8 then Exit Do ' shows the number of bars Rs.
Asp. NET provides a session object that allows programmers to identify, store, and process contextual information for several requests to a particular network application on the server by the same browser object. The session corresponds to the same
The simplest caching mechanism for storing the entire ASPX page in server-side memory, when the user requests a page, extracts data directly from server-side memory, and is not experiencing page life cycle. Used primarily for infrequently updating
function Printtabletoexcelex (objtab)
... {
Try
... {
var xls = new ActiveXObject ("Excel.Application");
}
catch (E)
... {
Alert ("You must have the Excel spreadsheet software installed, and the browser must use ActiveX controls, and your
Just "accidentally" checked the asp.net generated code, surprised to find that the asp.net output of the code is so not compact, in the label there are countless spaces and tabs (tab), especially with a nested table, the scene is really miserable ah,
Dim conn,rs;//Here, if you call an external file, you must define it here.This is the database creation connection method
Sub Opendb ()Set Rs=server. CreateObject ("Adodb.recordset")Set Conn=server. CreateObject
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.