web| Program | news | backstage | Project friends can test on their own, I have no problem here, Turtle had a morning's problem finally solved
Using System;
Using System.Collections;
Using System.ComponentModel;
Using System.Data;
Using
ASP.NET|SMTP in the. NET Framework 1.1, this requirement has been taken into account, adding a Fields collection to the MailMessage component is easy to increase the issue of sender authentication in the ESMTP mail server. However, this method
Start writing a team piece (get started with components)
Theme
This article is mainly for the people who want to improve their ASP level to write! The ASP code into a component, the developer is not only to speed up the ASP, but also to protect
Asp.net| Traversal | controls | How the page traverses all controls on the specified page under ASP.net
Preface: The purpose of writing it down is to feel that this code will help some friends!
#region empty all control contents on the specified
' Program table
'/represented as root directory
'/default.asp Home program, like the homepage of this site
./new/index.asp more Announcements
./new/addarticle.asp Add Announcements
./new/articleconn.asp Database Links
./new/chklogin.asp
excel| Program | Print at present, b/S mode (browser/server mode) has become the preferred computing mode of the Enterprise network. Because of the particularity of B/S mode, the Excel report printing function which is relatively easy to realize
Download
How the ASP calculates the time required for a file download
Function downloadtime (intfilesize, Strmodemtype)Dim timeinseconds, Modemspeed, Strdownloadtime, appendstringDim Intyears, Intweeks, intdaysDim inthours, Intminutes,
There are three DropDownList controls on the Asp.net| control aspx page.
DropDownList1 said the year, DropDownList2 said the month, DropDownList3 said days;
Note Set the AutoPostBack property of these three DropDownList controls to true.
Users can
This article is mainly the ASP code into components, the developer is not only to speed up the ASP, but also to protect their own code. Below, we'll write a very simple component that focuses on knowing how to develop DLL components, not their
function ASP commonly used functions, I hope to be able to use.
Dim db
db= "Dbms.mdb"
'******************************************************************
' Execute the SQL statement, do not return a value, the SQL statement best is as follows:
'
Error handling
If the page goes wrong without handling the error, the page displays an error that a user may not be able to read.
In ASP scripts, you can use the
On Error Resume Next
......
If Err.number<>0 Then
Response.Write Err.Description
' This is some of the components that came with IIS4 (default)
Dim Theinstalledobjects (8)
Theinstalledobjects (0) = "MSWC." AdRotator "
Theinstalledobjects (1) = "MSWC." BrowserType "
Theinstalledobjects (2) = "MSWC." Nextlink "
Theinstalledobjects
FSO Author: Gan Ganping;
Original source: http://www.15seconds.com/Issue/000816.htm
In ASP, the FSO means the file system object, which is the filesystem objects.
We are going to manipulate the computer file system, which is located above the
ado| Data | Database Many people may have their own ASP personal homepage, but there is not a lot of database permissions, today I give a method. You can build a library of your own. Not in Access or SQL Server format. is to build a format of your
FSO Author: Gan Ganping
Now there are some user information saved in the file, just like a simple database. Suppose a user wants to know all of the visitors, from the login
Separate the related parts from the information in the note, because there
Command|command Object | Stored procedure He said that if you return multiple values, such as the recordset and the return value, you must use the Command object ... I'm finally done with it. :)
' A section of the test does not use the Command
Asp.net| control ASP. NET custom controls are a good model for building software in a Web page like a stack of wood, and you can
Use a large number of Third-party controls to accomplish features you are not good at. However, it is difficult to
Object| source code send mail (p_sendmail.asp)
'*************************************
' This file is used to send mail
' Author: Awayeah
' E-mail: awayeah@163.net
'*************************************
If session ("straccount") = "" or Session ("
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