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 components advanced introductory and proficient series bis

Engineering name Flysoft class module Image.cls Option Explicit '***************************************************** ' CSDN VB version online (Tornado 3.0 Smile Proud Lake) ' 2005-6-30 Day modified part of code ' Name: Thumbnail watermark

asp.net in C # to open and fix word programs

The code is as follows Copy Code Objdoclast = ObjApp.Documents.Open (Ref Objorgdoc,//file nameRef objmissing,//Confirm versionRef objmissing,//Read OnlyRef objmissing,//Add to recent fileRef objmissing,//password fileRef objmissing,/

asp.net file and Folder action class (file deletion, creation, directory deletion)

The following file action class, you can delete directories and not empty directories Oh, you can also create files to write files, delete files previously recursive operation directory. Using System.IO;Using System.Web; Namespace

Asp. NET Read and write files tutorial

Read and write files using asp.net (VB)Reading and writing archive content using ASP.net 2.0 and C # 2.0 is actually very simple.First, you will need an imports System.IO namespace. Imports System.IO; We moved our web server to the wisdom

asp.net establish execel form

It is easy to build a local Excel table in asp.net and spread out by the server, while it is difficult to remove the embedded Excel.exe process. So you don't open Task Manager to see if the Excel.exe process is still in memory. I offer a solution

asp.net strong data type asp.net strong data type

The solution to the transaction problem in the strongly typed DataSet mentioned last time is also useful for general transaction solutions The TransactionScope class provides a simple way in which you can mark a code block as

asp.net Generate picture Verification code

Create a new getcode.aspx page and glue the following code to the GetCode.aspx.cs code file Using System;Using System.Collections;Using System.Configuration;Using System.Data;Using System.Web;Using System.Web.Security;Using System.Web.UI;Using

Web.config detailed ASP.net optimization method

This way of storing session information outside of the process is not just about storing information in a native process, but also storing session information in the process of other servers. Instead of changing the value of mode to StateServer, you

I write some of the functions that ASP often use (2)

'//Filter Foul language function Chkbadwords (fstring,badwords) Dim bwords bwords = Split (Badwords, "|") for i = 0 To UBound (bwords) Fstrin g = Replace (fstring, Bwords (i), String (Len (Bwords (i)), "*"), 1,-1,1) Nextchkbadwords = Fstringend

Introduction to ASP Programming (20): Modify data record of ADO component

A little summary: the operation of the database is nothing more than to display records, insert records, modify records, delete records, query records. And when it comes to displaying the record of the output format, paging program, then combined

Introduction to ASP Programming (20): Insert data record of ADO component

A simple display record is in place, and what is needed is to insert the information into the database through ASP. One, own database Cnbruce.mdb The purpose of this database is to be inserted into the data, you can directly use the Cnbruce.mdb file

Use flash and ASP to make a message this-asp article (next)

Use flash and ASP to make a message this-asp article (next) About Send.asp, basic with view.asp Text=request ("text") Constr = "Driver={microsoft Access DRIVER (*.mdb)};D bq=" & Server.MapPath ("Luiyan.mdb") & ";" Set conn = Server.CreateObject

Optimize your ASP performance--translated into Chinese

Maximize your ASP's performance ASP can quickly execute your dynamic Web pages, but you can also tighten code and database connections to make them perform faster. This is a A detailed article on how to streamline code and ASP features to get the

ASP does not need to configure IIS to implement pseudo static examples

        Set rs=server. CreateObject ("Adodb.recordset")     sql= "select * from Article"    Rs.Open Sql,conn, 1,1    do rs.eof    %>    .html" >     rs.movenext    loop    Rs.close     Set rs=nothing   %>      ' Source:

ASP reads XML document instance code

H=getlocationurl ()H1=split (H, "/")H=replace (H,H1 (UBound (H1)), "Note.xml")Set http=server.createobject ("Microsoft.XMLHTTP")http. Open "Get", H,falseHttp.sendSet xml=server.createobject ("Microsoft.XMLDOM")Xml. Async=falseXml.

Code of the datagrid traversal program in asp.net

The most common and simple datagrid traversal: The code is as follows:Copy code Foreach (DataGridItem oItem in ItemsGrid. Items){        CheckBox ck1 = (CheckBox) oItem. FindControl ("CheckBox ");If (ck1.Checked = true)  {    }} Of course, you

ASP. NET custom classes implement unified authentication program code

Identity authentication is often performed during ASP. NET development. It is troublesome to add verification code to each page. We know that ASP. NET pages are inherited from System. web. UI. page class, we can customize a class, let it inherit

In asp.net, Server. Transfer is redirected to an image, leading to cache failure. Solution

For example, when you directly request an image, the server returns the following HTTP header:Reference contentHTTP/1.1 200 OKContent-Length: 48150Content-Type: image/jpegLast-Modified: Tue, 18 Dec 2012 15:01:50 GMTAccept-Ranges: bytesETag:

Let's talk about the execution speed of the program (comparison of dynamic programming languages such as asp, php, and jsp)

/*Tofu is made of excellent products.Tofu technology StationIf reprinted, indicate the source*/Hello everyone, I have previously written an article comparing several dynamic programming languages (for details, see lanmu/viewarticle. asp? Id = 17),

Total Pages: 1800 1 .... 1597 1598 1599 1600 1601 .... 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.