Several large extensible components of ASP (i)

ini

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

ASP database connection and shutdown program

Public Function dbopen ()If IsObject (Conn) Then Exit FunctionSet Conn = Server.CreateObject (cfg.nconnectionobject)If conn.state = 1 Then Exit FunctionOn Error Resume NextConn.Open ConnStrIf Err.Number ThenErrorInfo = Err.DescriptionErr.ClearSet

asp.net under the aspose.words for. NET dynamically generate a data table in a Word document

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 write cookies and delete cookies code

ASP Tutorial Write cookie Code '----------------------------------------------------------------' Name:writecookie (ByVal strcookiename As String, ByVal Strkeyname as String, ByVal strKeyValue as String)' Parameters:' [ByVal] Strcookiename-cookie

Asp.net-cookies Shopping Cart Class

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;

Asp. NET generation of static page technology

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

. htacess Restricted Directory Upload asp,php,jsp,asp.net file method

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/(. *).

Talking about the application of MSChart in ASP

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

Generating chart with ASP (two-dimensional pie chart)

chr

This is the use of ActiveX Controls Id=mschart1 style= "left:0px; top:0px "Viewastext height=300 width=300>

ASP-supported intercept string functions in Chinese and English

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)

ASP common several instance functions

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 =

ASP bulk Delete specified file code

Delimg= "A.jpg,b.jpg,b.jpg"Img=split (Delimg, ",")Set fso=server.createobject ("Scripting.FileSystemObject")For i = 0 to Ubound (IMG)' Start execution of deleteDeleteFile = Server.MapPath (IMG)On Error Resume NextFso. DeleteFile DeleteFile, True '

ASP application store FETCH traversal instance

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

ASP file automatic Copy file move Setup program

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 ("./"

ASP video Playback Code

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 (

Asp. NET Core Service improvements

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

ASP calculation Time Date

Public Function Timetodiff (DateTime)If IsDate (DateTime) ThenDim Tsecond:tsecond=datediff ("s", Datetime,now ())If tsecondTimetodiff= "just"End IfIf tsecond>=60 and tsecondTimetodiff=datediff ("n", Datetime,now ()) & "Minutes Ago"End IfIf tsecond>=3

ASP read and write cookies code

' Function name: responsecookies' Function: Write cookies' parameter: Key----cookie Name' Value----cookie' Expires----cookie expiration time'****************************************************Public Function responsecookies

ASP generates static paging file code

db= "Database/database.mdb" Path=server.mappath (DB) Set Conn=server.createobject ("ADODB. Connection ") connstr=" Provider=Microsoft.Jet.OLEDB.4.0;Data source= "&path Conn. The Open connstr Set rs=server. CreateObject ("Adodb.recordset") %>

Asp.net c # three methods to obtain webpage source code

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.

Total Pages: 1800 1 .... 965 966 967 968 969 .... 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.