For the ASP extensions, some of you are already familiar with some are still unfamiliar very, write the intention of this article is nothing more than to think, in your ASP several large objects have been in the heart, may wish to play some of the
The recent project has one such requirement: Export Word documents, require that the format of the document is not fixed, users can easily adjust the data table columns in the export content is dynamic, for example, to export the name and gender,
Asp.net-cookies Shopping Cart Classasp.net cookies shopping cart, realize shopping cart function, realize no need to register to shoppingUsing System;
Using System.Data;
Using System.Configuration;
Using System.Web;
Using System.Web.Security;
Template page
Enterprise Hall-ASP. NET generates static page technology Static Main Table page IDName{Id}{Name}
Web.config file
Note: In addition to manually editing this file, you can also use theWEB Administration Tool to configure settings
The Apache environment rules are as follows: Apache executes PHP script restrictions to add these rules to the. htaccess file
The code is as follows
Copy Code
Rewriteengine on Rewritecond%!^$Rewriterule uploads/(. *).
Talk about how MSChart is used in ASP
MSChart is a powerful charting tool made by Microsoft that can
Easy to create a variety of charts. Make a variety of 3-D 2-D histogram, folding
Line diagram. In chinaasp, there have been several times when
asp supports intercepting string functions in Chinese and English
' txt = ' string to be processed ', length = number, length is the number of characters that need to be preserved, and 1 characters are 2 characters.
Function Cutstr (txt,length)
1, check whether the file existsUsage Example: If checkfile ("aa.jpg") = True Then Response.Write "OK"
Copy content to Clipboard program code
Function Checkfile (FileName)
On Error Resume Next
Dim Fsoobj
Set fsoobj =
Sub Application_OnStart
Application ("VI") = "Www.111cn.net"
Application ("UID") =2
End Sub
' The above code is to create the application variable
Response.Write (Application ("VI")) ' Output value www.111cn.net
' Above is the value
Sub Install ()Call FS ()Set Folder=fsobject.getfolder (Server.MapPath ("."))Response.Write ("installation documentation is complete,installation of the following documents ")For each FD in Folder.filesFname=server. MapPath ("./"
Id=html_encode (request.querystring ("id") if id<> "" Or isnumeric (ID) Then sql = "SELECT * from Vod Where id=" &id call opendb () rs.open sql,conn,1,3 if not rs.eof Then rs (8) =rs (8) +1 rs.update %>
ElseResponse.Write (
Permanent redirect page
A common Web application approach is to frequently move Web pages and other content over time, leading to the accumulation of failed links in search engine tutorials. In asp.net, developers usually use the solution to the
C # you can use WebClient WebRequest HttpWebRequest to obtain the original HTML code of a specified webpage.WebClientPrivate string GetWebClient (string url){String strHTML = "";WebClient myWebClient = new WebClient ();Stream myStream = myWebClient.
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.