In Asp.net 3.5, if menucontrol is used, the table format is used, that is:
It will generate the table method. Of course this is not very good, because it is now in the DIV and CSS era, to Asp.net 4Then, the
In the ASP. NET 2.0 login control (for details, see my
Article , Recovery), in which passwordrecovery (restoring the user password control, when the user enters the password to answer the question, after the answer, the user's user name and
1. image problems
Excellent solution
With runat = "server" added, the PATH uses the absolute path ~ /It is basically OK.
2. CSS file reference
The magic here is that the href of The Link file is automatically adjusted with the
There is no special page navigation control in ASP. NET 2.0, but it can be implemented using sitemapdatasource configuration and datalist.In the sitemapdatasource control, you must create a web. sitemap XML file that stores the website structure,For
1. Two commonly used page redirection Methods
(1) The redirect method redirects the client to the new page. It simply terminates the current page and transfers it to the new page for execution. There is no restriction on the page to be transferred.
(
1. Return to the. ascx page
1. Create an action
Public actionresult ascx (){Return partialview (); // return some views}
2. Create a View File
Then, access the display result through http: // localhost: 4116/admin/ascx.
Ii. return text
In the view page, we need to construct an HTML page to submit form data or display form data. For a page like HTML, we used to directly drag ASP: Server Control.
But now in MVC, how is it done?
1. We need to understand the HTML. beginform () and
Disadvantages of ASP:1. VBScript and JavaScript are only two scripting languages available in ASP. They are basic untyped languages. Strong languages cannot be used in ASP.2. The ASP page needs to be explained, making it slow to execute.3. The ASP
PHP header ("Location: http://www.phome.net"); ?>
HTML to go to other pagesAdd between and You can.
The value after content is the refresh time. 0 indicates refreshing immediately. 3: Refresh after three seconds. The URL value is the link to the
You may often encounter this situation:
sql="select * from table"set rs=conn.execute(sql)
After the preceding two statements are executed, if response. Write Rs. recordcount is used, result-1 is returned. However, there are actually records in the
About configuration control panel ---- add or delete programs ---- add Windows Components ----- IIS. After adding the content, go to your control panel-management tools-Internet Information Service, double-click the icon on the left to expand-find
The server application is unavailable. The web application you are attempting to access on this web server is currently unavailable. Please click "refresh" in the web browser to try your request again. Administrator Note: error messages that detail
Sitemap.xmlis a site map agreement, which is based on the robots.txt file protocol and upgraded. Websites that submit sitemap. XML to the search engine are more conducive to crawling indexing of Web Crawlers of the search engine. This will improve
1. disable unnecessary sessions2. disable unnecessary viewstateIf3. Do not use exception to control program processesException is resource-consuming.4. Disable VB and JScript Dynamic Data TypesThe dynamic data type occupies a large amount of CPU
# Region // control class public class publiclass {// // clear the control content /// Public static void delcontent (Control) {foreach (control CT in control. controls) {type TP = CT. getType (); If (TP. name = "textedit") {(textedit) CT ).
See http://www.microsoft.com/china/msdn/library/webservices/asp.net/URLRewriting.mspx
The simplest implementation is to judge and rewrite the request URL in application_beginrequest or application_authenticaterequest event processing in global. asax.
I recently learned ASP. NET MVC and compared the previous webform with no ispostback judgment, event processing is also replaced by action. In the webform of MVC, a large number of events are bound to the UI, mixed JS injection, and style changes
How to register Components
1. absolute path of the regsvr32 component
Example: regsvr32 C:/test/fc1.dll
The component can be used as long as it is registered, so it is irrelevant to the position of the component.
2. Register in COM + component
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.