1. ASP. NET attributes:Get server computer name: page. server. manchinenameGet user information: page. UserObtain the client computer name: page. Request. userhostnameObtain the Client IP Address: page. Request. userhostaddress
2. Network
BenProgramIs a special method. The scope of use is relatively limited, and there is a certain risk. Some methods in ASP backdoors are used for reference. Below is the programCode.
Dim remoteaddr
If request. servervariables
HTML page:
No title page
Backend CS code:
Imports system. Web
Imports system. Data. sqlclient
Imports system. Data
Partial class treeviewclass Treeview
Inherits system. Web. UI. Page
Dim ds as dataset = new system. Data.
Path:
Inherit the system. Web. UI. webcontrols. Button Control
Add the "confirmmessage" attribute to display the prompt information in the confirmation box.
Write a piece of JavaScript to the page before the server control is displayed on the
Summary of ASP. NET security verification
Http://www.cnblogs.com/kwklover/archive/2004/06/22/17806.aspx
1. Windows-based security verificationWeb. config file:The. aspx file can be verified without any code, but the login user information can be
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. webparts;
Using system. Web. UI.
I recently made an ASP shopping website. I have some feelings.
1. Unlike net, there are not so many objects in it, which are basically process programming. The used objects include response, request, and server.
2. Use the logical code area
3.
In the past, I always thought that it was very difficult to pass the page value. Today I know that there are so many methods! Session, application, cookies, querystring, server. Transfer. When the page is refreshed internally, some values will be
I Love Tiananmen, Beijing
Sun rises on Tiananmen
Great leader Chairman Mao
Guide us forward
Rules = "all" border = "1"> environment variable variable value all_http http_connection: keep-alive http_accept: image/GIF, image/X-xbitmap,
Here we will talk about three important special symbols in Asp.net.
(1) This is used to reference the user control and import the namespace. It is usually placed at the top of the page.
(2) This is displayed only after data is bound. It is used
Basic Requirements
● The program on the local backup server on the working machine should be backed up every morning or when a large-scale program change is required
● Unless in special cases, all file directory names must be in combination with
This ASP generic paging class is easy to use, and the speed depends on the actual application: if the total number of records (intrecordcount attribute) has been specified, it can support millions of data applications; if a Statistical Statement
Because it is relatively simple, I will not talk about anything. You can understand it at a glance!
Function chkstr (instring)If instring "" then? Instring = Replace (lcase (instring ),"","")? Instring = Replace (lcase (instring ),";","")? Instring =
In the past, webpage development was based on access. I knew this was not good, but there was no way. Now I am using this technology, so I have always wanted to upgrade my own things, maybe this is not a problem for others, but for me, I have
Today, I am working on a small thing and suddenly found a problem with ASP, that is, using request. when querystring ("str"), if STR contains special characters (eg. '+'), use request. in the data received by querystring ("str"), '+' is completely
ASP has been used for many tasks, but I have never paid attention to it. Today I have spent some time writing this item for future use.
Dim rstotal, rspagesize, rspagecountIf not isobject (objrs) Then exit Sub: end ifIf not isnumeric (rspagesize)
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