Copy Code code as follows:
private int Geturlerror (string curl)
{
int num = 200;
if (this.method==1)
{
HttpWebRequest request= (HttpWebRequest) webrequest.create (new Uri (curl));
Servicepointmanager.expect100continue=false;
Try
{
The following is an access log file
2008-8-13 14:43:22
mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1. NET CLR 2.0.50727;. NET CLR 1.1.4322)
2008-8-13 14:43:27
mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1. NET CLR 2.0.50727;. NET CLR 1.1
In fact, the static page here is not a true sense of static, but can reach the static page parsing efficiency, but also without project testing, to share.
Copy Code code as follows:
Const devjs_index= "Index.html"
Const
Function procedure:
Copy Code code as follows:
' Del.asp
Dim fso,tmpfolder,tmpsubfolder,tmpfile,tmpfiles
Set Fso=server. CreateObject ("Scripting.FileSystemObject")
Sub Delfolder (spath)
If (FSO). FolderExists (server. MapPath (spath)
To use the ServerVariables property of the Request object, it is used to obtain the value of the environment variable. The syntax used is: request.servervariables (variable), "variable" means the name of the environment variable, such as server host
ASP garbled is really tricky, this description is more authoritative. remains to be studied. No information is as authoritative as official information. Today, we've finally chosen the solution for ASP coding problems from MSDN.... ASP garbled is
'******************************
' Function: checkstring (STRNG)
' Parameters: Strng, string to be validated
' Author: Arisisi
' Date: 2007/7/13
' Description: Detects whether a string is a combination of pure letters and numbers
' Example:
'********
Returns to the previous page, generally used to determine whether the information is submitted completely after '******************************
' Function: GoBack ()
' Parameters: None
' Author: Arisisi
' Date: 2007/7/13
' Description: Return to the
'******************************
' Function: comma (str)
' parameter: STR, number to be processed
' Author: Arisisi
' Date: 2007/7/12
' Description: Returns the number formatted with thousands of digits
' Example:
Suppose you enter in search box: "ASP Programming"
First get the contents of the Input box: search=request ("search")
The two values are then extracted separately
S=split (Search, "")
' Construct SQL functions
Sql= "SELECT * FROM News"
For I=0 to
Program code:
The following are the referenced contents:
Copy Code code as follows:
' Search for keywords
Str= "SELECT * FROM tablename where id>4"
If srhkey<> "" Then
Keyarr=split (Srhkey, "")
J=ubound (Keyarr)
T=0
Dim Keystrarr ()
I used textarea to submit a lot of data.
I started the field type is Mediumtext, the data is missing
Then I changed to Longtext, the data was still lost,
And found that the amount of data submitted to the database by Mediumtext is the same,
did not
Copy Code code as follows:
str = Request ("str")
reg = Request ("Reg")
Set regex = new REGEXP
With regex
. Pattern = Reg
. IgnoreCase = False
. Global = True
End With
Set match = regex. Execute (str)
If match. Count > 0 Then
For
Just beginning to contact ASP.net, about how to log records less, so a simple record of log4net configuration and use, in case you forget later.
first introduced Log4net.dll, about the file of their own Baidu download.
Then configure the
In the C # development process, it is unavoidable to write some JS, in fact, to do the backend development, itself is not good at writing JS, simply summed up, to facilitate their own and convenient for others to share. Oh ~ ~
1. Front Button
1, extending the HtmlHelper class method Showpagenavigate
public static htmlstring Showpagenavigate (this htmlhelper htmlhelper, int currentpage, int pageSize, int totalcount) {
var redirectto =
It has also been thought before that these functions are based on different items in different folders, such as members of the club in member, backstage management will be in the Admin folder, the News folder. If the VS support builds different DLLs
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.