After several months of development of an ASP. NET application project, I had some experiences and shared them with you.
1. When static pages are available, static pages are used. Static pages do not need to be processed by ASP. NET, but are only
Session:
The current browser user expires after the browser is closed or after a specified time (20 minutes by default ).
At the same time, according to the session storage method, there are different situations:
Inproc: In this mode,
Non-Domain environment InstallationProblem:The system prompts "User 'nt Authority \ Network service' Logon Failed"
Solution:
New LogonIn SQL Server Enterprise Manager, create a new login in security-login, and click "... "button, select iis_wpg as
A new MVC (model, view, Controller) framework, which provides options completely and does not replace the existing webforms page controller model. The webforms and MVC models will be fully supported and improved in the future.
Part 1:
Since accessing Asp.net MVC, we found that it is much easier than Asp.net form, and we can expand helper and filter according to our habits. The Controller layer can also be written according to your habits. You can create a table as a controller,
Step 1 is deployed on IIS 5.1
Iis5.1? That is, IIS under XP.
The first thing to note is that ASP. net MVC beta by default, the system is not configured. web. abstractions. DLL, system. web. routing. DLL, system. web. MVC. DLLProgramPrivate
Lesson 1: create a simple ASP page
The best way to learn about ASP pages is to write your own ASP pages by hand. Creating an ASP page is simple, just use the text editor to insert the script command into the HTML page. Save the main page with. ASP
1. implement automatic jump of text box focus and submit the form through the Enter key
ASP: textbox
ID
= "Passwd"
Onkeydown
= "If (event. keycode = 13) {document. All. imgbtnlogin. Focus (); event. keycode = 13; event. keycode = 13;
When you are playing Weibo every day, there is a "person you may know" on the Weibo broadcast content. Every time you refresh the page, the data there will change randomly, I will share with you today that I will write a general description of the
HTTP is a stateless protocol, so the status cannot be shared among different requests. However, it is useful to maintain the status between different requests. For example, the implementation of shopping cart on a shopping website depends on this
For Baidu and other search engines"WWW"Identify the domain name with a prefix:Www.abc.comAndAbc.comIt is identified as two different domain names. The consequence of doing so is to spread the attention of the website, which is not conducive to the
In Windows ApplicationsProgramYou can use the date control to select a date instead of entering it directly. The advantage is that the date format is not incorrect and the interface is friendly. For example, I need to enter a unit encoding in the
Introduction
Common URL rewriting usage
What will happen when the request arrives at iis?
Implement URL rewriting
Build a URL rewriting Engine
Use the URL rewriting engine to perform simple URL rewriting
Create a URL with
I saw bestcomy's series about uploading large files two days ago.ArticleI have benefited a lot. I have a new understanding of the methods for uploading files in ASP. NET, which is much better than the simple methods of using saveas. New ideas are
At the underlying layer, the. NET and ASP. NET infrastructures have done a lot of basic work to make development easier. Although this architecture is good as a black box, it is helpful to understand the implementation details of the operation, and
ArticleDirectory
Hello World
In the. aspx file, we often encounter the followingCodeSuch:
1. The variable name in , such:
Hello World welcome to beginning ASP. NET 3.5 onDatetime. Now. tostring () %>Output result: Hello World
1. Overload protected override bool onbubbleevent (Object source, eventargs ARGs)Onbubbleevent is the event bubbling of the control to the outer control.Certificate -------------------------------------------------------------------------------------
1. Import Excel data to the database:
// This method exports data from Excel to dataset. The filepath is the absolute path of the Excel file, and the sheetname is the Excel table;Public dataset exceldatasource (string filepath, string sheetname)...{
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