Some methods of ASP generating HTML static files

Do Web sites want to use dynamic information, and the dynamic and slow, then come out of the dynamic generation of static methods, ASP generated HTML, but found that the generated content is not the latest, such as I generated the home page, after

Practical Paging program code in ASP

Page=request ("page")If page<> "" ThenP_absolutepage=cint (page)ElseP_absolutepage=1End IfSql= "SELECT * FROM [Date]"Set Rs=server.createobject ("Adodb.recordset")Rs.Open

Method of 301 permanent redirection in ASP and IIS

iis

Website Domain name: www.***.com Achieve the goal: input www.***.com or ***.com are able to enter the primary domain name www.***.com System Category: ASP Class website Prerequisites: The Site Administration panel can set the default home page

ASP generates HTML simple implementation program

The code is as follows Copy Code Function Gethttpxml ()Set Http = Server.CreateObject ("Msxml2.serverxmlhttp")Dim lresolve,lconnect,lsend,lreceiveLresolve = 5*1000Lconnect = 5*1000Lsend = 15*1000Lreceive = 15*1000Http.settimeouts

Solving uft8 and gb2312 conversion garbled problems in ASP

Now let's talk about how to solve the problem and how to use it.Add the following code to the common file conn.asp used in the Web site program: 1, Gb2312 code page to join The code is as follows Copy Code Finally add

ASP read the implementation code of Excel table name

See code: The code is as follows Copy Code Dim conn,rs,excelfilenameExcelfilename=server.mappath ("Data/test.xls")Set conn = Server.CreateObject ("ADODB. Connection ")Conn.connectionstring= "Provider=Microsoft.Jet.OLEDB.

Asp enables voice Upload

 Asp enables voice Upload select voice ', '', 'scrollbars = no, resizable = no, width = 340, height = 200 ') "> Table sound field id numeric 9 (auto-increment) wav image 16 wavinfo varchar 50 wavsize numericSave. asp write audio files to the

Filter out html code in asp

chr

Method 1Function RemoveHTML (strHTML) 'functions used to filter HTML code include filtering CSS and JSStrHtml = Replace (StrHtml, vbCrLf ,"")StrHtml = Replace (StrHtml, Chr (13) & Chr (10 ),"")StrHtml = Replace (StrHtml, Chr (13 ),"")StrHtml =

Obtain the image address of an html file using asp regular expression

Function getIMG (sString)Dim sReallyDo, regEx, iReallyDoDim oMatches, cMatch'// Defines an empty arrayIReallyDo =-1ReDim aReallyDo (iReallyDo)If IsNull (sString) ThenGetIMG = ""Exit FunctionEnd IfSReallyDo = sString'// Format the HTML codeSReallyDo =

ASP static page generation method

, With templet means that the generated page architecture will use a preset template, which was introduced in my previous tutorial, I hope you will be familiar with ASP template before reading this tutorial.2. ASP is converted to HTML. Don't let me

Four tips for optimizing ASP applications

This article will introduce four tips for optimizing ASP applications.1. Cache frequently used data in Application or Session objectsASP Application and Session objects provide a convenient container for saving data in the memory. You can assign

ASP multi-condition dynamic query

When ASP is used to deal with SQL Server databases, query statements are essential. The SQL Server database itself provides a variety of query statements, but how to implement multi-condition dynamic query for the SQL Server database in ASP? When I

Obtain the Chinese date string of ASP

We usually need to write the previous date on the WEB page to enable user-end scripts or ASP.A feature of ASP is that the effect produced by ASP is static pages, but in reality it is dynamic.If you want to use ASP to display the daily period of a

Asp: Cookie Application Guide, detailed code and tutorials

In fact, in web development, a cookie is only a text file. When a user accesses a website, it is stored on the user's computer.Some information, which can be extracted by the web when the user visits the site again in the future. Although it sounds

A relatively used asp function collection class

  I recently fell in love with my website and used asp for development. I found that asp has many vulnerabilities and a lot of code is used repeatedly on a website, so I found some materials and found that the idea of class can be used in asp. So I

Asp learning Notes

1. Enable Record set again before it is disabled:------------------------------------SQL = "select * from test"Rs. open SQL, conn, 1, 1If not rs. eof thenDim myNameMyName = rs ("name ")End ifSQL = "select * from myBook"Rs. open SQL, conn, 1, 1-------

Several methods for connecting to Mssql in ASP!

  Method 1:Dim connSet conn = server. createobject ("ADODB. connection ")Conn. open "PROVIDER = SQLOLEDB; data source = db.janusgroup.cn; UID = web286418; PWD = j2z0h1v2; DATABASE = www_janusgroup_cn"Set conn = Server. CreateObject ("ADODB.

ASP toolbox -- asp error set

  ActiveServerPages, ASP0126 (0x80004005) --> the inclusion file cannot be found.MicrosoftOLEDBProviderforODBCDrivers (0x80040E21) --> SQL statement error (data type mismatch, table name (field name) error, table being edited, or table not in

Convenient ASP paging program

Set conn = server. createobject ("adodb. connection ")DBPath = Server. MapPath ("sap_mis.mdb ")Conn. Open "driver = {Microsoft Access Driver (*. mdb)}; dbq =" & DBPathSet rs = server. createobject ("adodb. recordset ")SQL = "select sap_adon_record. *

ASP implements structured listing and viewing all files under a path

  Map of files on this site Hide/Show => Sub window_onscroll ()Rightf. style. pixelTop = document. body. scrollTopShhi. style. top = document. body. clientHeight + document. body. ScrollTop-30End SubSub DoFold (index) 'process of displaying and

Total Pages: 1800 1 .... 1464 1465 1466 1467 1468 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.