CopyCode The Code is as follows: '================================================ ======================================
'= System Version: 1.0 =
'= File version: 1.0 =
'= Text creation date: 2005-10-31 =
'===========================================
To prevent further attacks, perform a verification code filter.
Program It is necessary. I found some information on the Internet and thought it was done by others.
Code It's always uncomfortable. You don't need to write complicated code,
CopyCode The Code is as follows :**////
/// Intercept a string without specifying the length of the string
///
/// String to be truncated
/// The length of each line, more than the length of this line automatically wrap
///
Public String cutstr
We need to use the recordsetcount attribute to determine whether the data in the database is empty before using movenext and other methods of the recordset object:
CopyCodeThe Code is as follows: dim objrs as new recordset
Dim objcn as new
Example: I write keywords to the database. When many keywords are used, they are separated by |. I extract them and then perform related operations.
ArticleHow can I extract words separated by commas (|) during the search so that I can use keywords
1. sqldataread and dataset SelectionSqldataread advantages: fast data reading. If you do not need to process the returned data in large quantities, we recommend that you use sqldatareader. Its performance is much better than that of datset.
Textbox press ENTER trigger event
CopyCode The Code is as follows: // write directly in JS
// Textbox1 indicates the textbox ID on the page.
In the pageload eventCopy codeThe Code is as follows: textbox1.attribute. Add ("onkeypress",
CopyCode The Code is as follows: using system;
Using system. Data;
Using system. configuration;
Using system. Web;
Using system. Web. Security;
Using system. Web. UI;
Using system. Web. UI. webcontrols;
Using system. Web. UI. webcontrols.
ADO object: Connection
Command
Recordset
Record
Stream
ASP supports many objects. You can compile COM components by yourself. The following are frequently used:
Server. Createobject ("scripting. FileSystemObject ")Server. Createobject
CopyCode The Code is as follows: using system;
Using system. Data;
Using system. configuration;
Using system. Web;
Using system. Web. Security;
Using system. Web. UI;
Using system. Web. UI. htmlcontrols;
Using system. Web. UI. webcontrols;
Using
Problem: It is said that using forms authentication cannot get more information about the current Login User except the user name. After some small experiments, the userdata that comes with forms can be used as a place for us. The following is a
Copy codeThe Code is as follows:
Untitled Page
// load the function in the script file
// display strings on the webpage
// form
Onclick = "return tupian_onclick (tupian)" onmouseover = "return tupian_onmouseover (tupian)" onmouseout =
Prevent the user from submitting the form repeatedly using the back button
Response. Buffer = true
Response. Expires = 0
Response. ExpiresAbsolute = now ()-1
Response. CacheControl = "no-cache"
%>
Response. Buffer = true indicates whether the output
1. Download ckeditor and put it in the website directory. Address: http://ckeditor.com/
Reference js
3. Add an edit box
4. Add the following code below:
Copy codeThe Code is as follows:
The basic functions can be completed in this way, but
There are several series of tutorials on ASP. net mvc on the Internet, so I will not introduce them from the beginning. I recommend several links at the end. If you need them, you can look at them from the beginning.
1. Introduction of ASP. net mvc
Although ASP. NET is a highly secure scripting language, but it is often seen in ASP.. NET website injection due to lax filtering. because ASP. NET is basically used with MMSQL database setup. If the permission is too large, it is easy to be
Starting from this section, I will introduce you to several three common ASP classes. It runs through the three-tier architecture I designed and extends the ASP syntax, it can improve the processing efficiency of many details, but it can be regarded
Let's take a look:
First, let's look at the design of the database table. The data table mainly includes ID, Name, and ParentID, where ID is the primary key and ParentID corresponds to the parent node of the node:
Method 1: recursively traverse the
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