Reproduced, original address: http://anti-pure.javaeye.com/blog/200048
If the URL to be tested is http: // www.test.com/testweb/default.aspx,
The result is as follows:Request. applicationpath:/testwebRequest.
Base class:
Load the inherited page first, and then load your own. If there is an inherited page, load the inherited page first.
Controls:
1) The init event is triggered from the innermost control (including the user control and common control)
Add a view
In this section, you will continue to modify the helloworldcontroller class and use the view template to encapsulate
Simple HTML response to the client.
You will useRazor view EngineCreate a view template.
Based onRazor view
Because it is not really a good understanding of the three-layer structure and construction, we use vs2005 to establish a "so-called three-layer" practice exercise, and further understand
(Note: It is used in vs2008 team, but it is also useful in
Registration exercise:
Verification code generation:
Public void ProcessRequest (HttpContext context)
{
String str = ""; Random r = new Random ();
For (int I = 0; I
{
Int j = r. Next (10 );
Str = str + j;
}
Context. Session ["YanZheng"] =
I tried to use jquery's ajax, so I did a test. However, I started to think that the error message "parsererror" is returned as a json format problem, and finally found that it was a web. I lost two lines in config and got depressed for a long time.
The foreign server seems to have locked the web due to security issues in some dll editors to be referenced. some permissions in config are not available if FreeTexbox is tried first, and FCKEditor is not available because dll files are to be
Request objects include:HeaderBasic information about the client (such as the browser type, version number, user language, and encoding method)Request Method (Post or Get)Parameter NameParameter Value
Call method of the Request object:Request.
XmlXmlTextReader provides only forward, fast, and read-only reading of xml content. xml larger than 1 MB is often used for reading, XmlTextReader. Create () loads xml filesXmlDocument reads xml content to the memory. The XmlDocument. Load () method
I quit my job recently and have some leisure time. Besides worrying about my next livelihood, I have a taste for it. For a period of time, new colleagues have been asking about website development. Because website development involves a wide range
1. object initialization (OnInit method)
Controls in the page (including the page itself) are initialized for the first time in their initial FORM. Declare your object in the constructor of the background code file on the ASPX page. The page will
Developed with CSS Friendly ASP. NET 2.0 Control Adapters (Beta 2.0)
For example, in the login control, CreateUserUrl = "~ /Secure/NewUserReg. aspx "and PasswordRecoveryUrl = "~ /Secure/PasswordRecovery. aspx"1 2 Width = "232px" OnLoggingIn =
I started a website some time ago and encountered a new problem when using ListView and DataPager. First, describe the requirements of the page: There are two levels of categories, one category. Below there is a subclass, which corresponds to the
I. Using OutputCache in ASP. NET MVC to implement server-side page-level cache
In ASP. net mvc, if we want to cache a page (that is, an Action) on the server side, we can mark the following features on the Action:
1 [OutputCache(Duration = 10,
When you use asp.net for web development, the information in On the page can be dynamically specified through the cs file of asp.net, but if many pages are processed like this, it is no different from adding a base class BasePage (inherited from
When the page is sent back, if you click the button, all the above events will be re-executed. The execution order is as follows:1. OnPreInit2. OnInit3. OnInitComplete4. OnPreLoad5. Page_Load6. OnLoad7. Button_Click8. OnLoadComplete9. OnPreRenderWe
View Code
1. The first one is written in the program code,23. In the event of clicking the value transfer, write:4567 Response. Redirect ("adminUpdate. aspx? UserName = "+ gvAdminInFo. selectedRow. cells [1]. text. toString (). trim () + "&
I. Processing Between IIS and ASP. NET
IIS 5 is not discussed here. It has been basically eliminated in the actual production environment. Let's look at ASP.net request processing process 1 of IIS 6 (the integration mode of IIS 7 is not discussed
Deployment Optimization
We all know that different deployment methods have an impact on the performance of the site. Some friends may already know this. In any case, let's talk about this problem in detail, the right of a familiar friend should be
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