Recommended: WebService property record in asp.net 1 webservice attribute [webservice(description=ddddd),namespace=http://````,Name=webservice name] 2 webmethod: web service method (including the following 6 attributes) description: Comment on methods in webservice service class enablesession: Identify whether the current webservice starts session; default is false; (if fa
Asp method to obtain the connection attributes of the database
Option Explicit
dim objCNN
dim intCTProps
dim item
dim vbCRLF
vbCRLF = chr(10)
Response.Write & vbCRLF
Response.Write
The wonderful spring breeze view database attributes & vbCRLF
Response.Write vbCRLF
set objCNN = Server.CreateObject(ADODB.connection)
objCNN.Open DSN=VicTest
Response.Write > Numbering & vbCRLF
Response.Write >Name>Value&vbCRLF
intCTProps = 0
for each item in objCNN.Properties
intCTProps = intCTProps + 1
Response.Write & intCTProps & & vbCRLF
Response.Write & item.name & & vbCRLF
Response.Write & item.value & & vbCRLF
next
Response.Write & vbCRLF
Response.Write vbCRLF
Response.Write & vbCRLF
set objCNN = Nothing
set intCTProps = nothing
set item = nothing
set vbCRLF = nothing
%>
Share: How to initialize in an ASP.NET application Subtitle #e# Each program needs an initialization process to read configurations or set some running environments (variables). For ASP.NET programs, where should the initialization tasks be performed? I think most people know the process of performing initialization in Global.asax, but some details are what we need to pay attention to. Example code for this use case in this blog