1. How to bring up prompt information in the background
Response. Write (" ");
// The prompt is displayed, but the page is blank.Page. registerclientscriptblock ("tishi", " ");
// The prompt is displayed, but the page is blank.Page.
There is a UTF-8 encoded ASP file. Assume the file name is utf8.asp and you want to output the gb2312 encoded page. Asp.net is very simple.
Response. contentencoding = system. Text. encoding. getencoding ("gb2312 ")
Only ASP does not work, so find
The XMLHTTP object created using JavaScript submits a request to the ASP page, and the returned value may be garbled.
One solution is simple: Add response. charset = "gb2312" before the ASP return value ".Complete Code As follows: Html
test
1. When debugging ASP. NET applications, an error message "the project is not configured for debugging" is displayed.
Symptom
When you debug an ASP. NET application in Visual Studio. NET, the following error message may appear:
Error while trying to
Substring
Public string substring (INT beginindex) returns a new string, which is a substring of this string. The substring starts with a character at the specified index until the end of the string.
For example:
"Unhappy". substring (2) returns
If SESSION ("mm_username") = "" thenResponse. Redirect "index. asp"End if%> HengSheng training agent system personnel management User order management order management Withdrawal Management "> exit the system &
1. Several common functions
Round (PI, 2) Rounding
Formatnumber (K, 4) 'format K to the number of four decimal places.Eg. If K = 20000, the value is 20,000.00. If formatnumber (K, 0) is set to 20,000
Replace (expression, find, replacewith) 'returns
From: http://blog.csdn.net/danielhf
In Asp.net, context corresponds to the httpcontext class, which carries information about all the current requests. In the HTTP pipeline, you can obtain request, response, session, and, cache and other useful
When creating a website, a visitor may encounter some incorrect operations or website defects, resulting in a webpage that does not exist being accessed. In this case, the 404 error message is displayed, an enthusiastic visitor may send you an email
Use getstring to multiply ASP speed. Source: Internet browsing times:
239
Many ASP programmers have performed database queries and then displayed the query results in the form of HTML tables. Normally we should do this:
'Create
Only by truly entering the ASP. net mvc world can we know its highlights.
"Abandon WebService and use jquery to call WCF in. net4." -- after abandoning WebService, you can also use jquery to call controller of ASP. net mvc.
"ASP. net mvc is not
2. Develop composite controls
The control should check whether the content submitted by the user contains the "offensive" word. The offensive word is defined by an XML file. The structure of the XML file is as follows:
word 1 word 2
Language Features of ASP (Active Server Page)
The Web is derived from static text, which is almost used by many websites. The disadvantage of static text is that it is difficult to maintain (the number of files is large),
If you have your own website, do you often exchange links with others? Every time you manually add links to others, have you ever thought of an automatic link system that can automatically register website information and generate links? If the
ASP. net mvc source refresh Preview
We recently opened up a new ASP. NET codeplex project that we will be using to provide previews (with buildable Source Code) for several upcoming ASP. NET features and releases.
Last month we used it to publish
. The core of Role-based security verification is the principal and identity objects. The principal is responsible for role or group verification, the identifier object encapsulates information about the user or entity being verified. Role security
2. Custom role providers
If you want to verify by role, it must involve the role provider. By default, it will connect to the default database, we can write a role provider to implement our own logic.First, add the configuration in Web.
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