Today in the change of a business-to-business e-commerce system, found that the ASP is positive, although using ASP for a long time, but never used regular expression, this system has a regular function is very good, I see it.
Copy Code code
Server-side ease of operation I do not blow, the Earth people know, it is the most annoying than the page refresh, the head was brushed dizzy, and he refreshed, but also triggered the server side of the event (solution:
Dim Curpage
Curpage=cint (Request ("page")
If curpage = empty or curpageCurpage = 1
End If
Response.contenttype= "Application/xml"
response.charset= "gb2312"
Response.expires=0
Response.Write ("")
Dim rs,sql ' defines connection database objects
Set
1, ASP two simple way to generate static home page
Why should I generate a static home page?
1, if you read the first page of the database more frequently, the speed is very slow, and occupy a lot of server resources. Using static page access speed
Here are 4 functions that are enough to withstand all SQL injection vulnerabilities! Read the code and you can digest it.
Be careful to filter all Request objects: including Request.cookie, request. ServerVariables and so on are easily overlooked
Copy Code code as follows:
' This program reduces the reading of the database by using the FSO function of ASP. After testing, you can reduce the server load by 90%. Page access speed is basically equivalent to static pages.
' How to:
database field: ID (AutoNumber), class_name (menu name), ParentID (parent menu ID)
Copy Code code as follows:
Dim m
M=0
Call Showtree (0)%>
Sub Showtree (ParentID)
Dim s
M=m+1
Dim RS
Set rs = Server.CreateObject ("ADODB.")
This article mainly introduces the use of ASP.net date format to capitalize Chinese characters, such as: "December 3, 2013" converted to "two 0 three years to pick up two days," the following to see how to achieve.
The same words not much said,
Copy Code code as follows:
' ============================================================== Check submission data legality
Function Checkinput ()
'--------Definition part------------------
Dim Fy_post,fy_get,fy_in,fy_inf,fy_xh,fy_db,fy_dbstr,
Since the last few times have not been able to finish, the end of the year finally have free time, and want to continue to do some work. So I downloaded the VS 2015 Professional Edition (I don't know why I particularly love the Professional edition,
This paper illustrates the method of asp.net in English and Chinese domain detection. Share to everyone for your reference, specific as follows:
First step: Write JS code and related controls in the foreground page
/**** Write JS code ****/ /**
Experiment Objective: To verify the value of active free memory variable.
Experiment Original code:
Memory Change screenshot 1:
Screenshot explanation: The CPU waveform change is caused by the page automatic refresh, do
18-bit ID card verification algorithm
Verification code algorithm for ID card
ID Check code generation method:
∑ (AIXWI) (mod 11)
I: the number of digits from the to left including the check code;
AI represents the number character value on
Web.config
The first method:
" appsettings>
The second method:
background Aspx.CS
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Web;
Using System.Web.UI;
Summary:
Explains the knowledge of URL rewriting. A method of two-level domain name rewriting is implemented with ASP.net. A summary of some of the questions that have been rewritten. provides several sample code.
For a long time did not write
Problem:
Site has bbs.xxx.com/main.xxx.com/pay.xxx.com these three different two-level domain name station, to achieve any level one or two domain name landing, the other two-class domain name stations are landing.
Solution:
Sets the domain property
Of course it can, and it's very simple, today I'll teach you how to generate HTML static pages without templates in ASP.
This assumes that there is a htmer.asp dynamic page, you want to make it into an HTML static page htmer.html, then we first
Have done many times before, have no success, did not know how to succeed last night, borrow my classmate's word, this is called "flash", Nonsense said, this success is there is a video of the Truth ha!
This blog post is three months, I think it is
IIS6 has asp.net installed, but the ASP.net tab is not displayed in the site properties.
The solution is as follows:1, if only the. NET Framework 1.1 is installed in IIS, that tab is not displayed. asp.net1.1 is supported by default. The
First, the use of System.Web.Mvc.Ajax
1.1 System.Web.Mvc.Ajax.BeginForm
1.2 System.Web.Mvc.Ajax.ActionLink
Second, by hand to create their own "non-intrusive" Javascript
First, the use of System.Web.Mvc.Ajax
1.1 System.Web.Mvc.Ajax.BeginForm
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.