ASP.NET skills

xiaoxiao2021-03-06  15

(1) ~ Usage (~ just replacing the request.ApplicationPath, can only be used for server controls, can not be used in the HTML element.) In general, we use ./../ This relative path to determine and Plan our resources (such as pictures, resource files), but in this way, when we deploy applications, you may be wrong, and if you contain a picture in .ascx control, this control is we at different levels. When the ASPX file of the two directories, the problem will appear. ~ / Image / about.bmp is a very good way to start the point as the root of the web application, so that it is more flexible and convenient than you ./Image/about.bmp is more flexible. There is a little bad, this way is dynamically parsing when the ASP.NET is running, so in the IDE design mode, you may not preview it.

(2) Scrolling DataGrid

(3) Debug mode of the ASP.NET is to facilitate development debugging, and VS.NET is turned on by default for the Debug mode. When the application is deployed, the debug mode should be turned off, which will effectively improve application performance.

转载请注明原文地址:https://www.9cbs.com/read-46347.html

New Post(0)