Thinking
1. Use tools such as DW-MX to generate HTML-formatted templates, add special tags (such as $htmlformat$) where needed, and dynamically generate files using code to read the template, then get the foreground input, add to the tag location
Sometimes need to get some information on the remote Web site, and the server has limited access, can only be submitted through post data, this time we can use ASP to implement the simulation of the post data, there are quite a number of such
Now this project needs to use ASP to do regular mail delivery, many people say that ASP does not have such a function.
In fact, I have in the previous article has done a detailed explanation, but that is a timed task, the basic idea is the same.
A very common ASP question: "How do I schedule a workflow to execute a Web page?", most likely because an administrator might use an ASP Web page to perform database maintenance actions, such as backups, and there is a way to do the work process on
Strictly speaking, ASP is not a programming language, so there is no concept of class, we say that ASP class refers to the ASP's programming language VBScript in the application of the ASP class.
ASP class is relatively simple, it does not have the
A few days ago, the Big Buddha wrote "ASP design mode", may be some beginners or just contact the ASP's friends do not fully understand, I have collated a way to write an ASP, most of it is from the Internet to find. I hope it will be helpful to our
1. New Project
2. Create a Visual Studio solution
3, then create the project
4. Select Class Library Type
5, in turn, create BLL (business logic layer), DAL (data access Layer) and model (models layer can also be called solid layer)
6.
1. The scope that the FindControl method is looking for is the descendant control for the given controls.
Copy Code code as follows:
such as the above code, the background with Panel1.findcontrol ("Button1")
UpdateProgress should be the meaning of "update progress".
How to use:
1. Add a ScriptManager control
2. Add a UpdatePanel Control
3. Add a UpdateProgress control
Set the associatedupdatepanelid of the UpdateProgress control to the ID of the 2nd
OleDbConnection con=new OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=data.mdb ");
Con. Open ();
OleDbCommand dc=new OleDbCommand ("Select name from us where id=2", con);
Textbox1.text=dc. ExecuteScalar (). ToString
ASP function Library
"' Function directory '"
''''-----------------------------------------------''''
"' function id:0001[truncated string] '"
"' function id:0002[filter HTML] '"
"' function id:0003[open any data table and display the table
1, use isapi_rewrite for dynamic link rewrite HTML static URL. Isapi_rewrite is a DLL component, and Re_write is a module in IIS. This filter implementation is a regular expression, the Dynamic Web site map into a static web site. If news.asp?id=95
Explain the ASP aspects of the knowledge is more complete!
For those who just started to learn the ASP's friends to give me the bonus points!!!!
First part
Install active Server
Page's prep work
. Chapter I. Installation and use
WINDOWS NT
The same space to bind a domain name more
Copy Code code as follows:
Checkdomain
Sub Checkdomain ()
Dim Sdomain
Sdomain = Request.ServerVariables ("Http_host")
If Instr (Sdomain, "a.xxx.com") >0 then Response.Redirect "A/"
The JavaScript is loosely typed. Database files are not. If you put the text into a Boolean database column or a Boolean of date/time column, then you have an error.
For the "most part" a problem, except for
date/time
. It does not
The Connection Execute ():
If you are want to retrieve the data from a database then your have no choice but to use a Recordset. However, for the purposes of adding, updating, and deleting data you don ' t necessarily have to have a Recordset. It '
1, database connection.
ASP to connect to an Access database:
Dim conn,mdbfile
Mdbfile=server.mappath ("database name. mdb")
Set Conn=server.createobject ("Adodb.connection")
Conn.Open "Driver={microsoft Access Driver (*.mdb)};uid=admin;pwd=
Realize the function is not difficult, want to perfect, even perfect, that is called difficult.Therefore, the younger brother will realize the function to come out, and you discuss the discussion with beginners. As for perfection, it's up to you to
1. General method of calling stored procedures
Let's assume that there is a stored procedure dt_users in SQL Server:
CREATE PROCEDURE [dbo]. [Dt_users]
As
SELECT * from Users
Return
Go
The first approach is to not use the command object, directly
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