As the back-end optimization space is getting smaller, more and more sites pay more attention to the front-end performance optimization, is the browser, HTTP optimization, here to write two of the simplest and most effective ASP.net website
1, ClientIDModeRendering the ASP.net control automatically generates an ID that, when referenced in client script, creates a lot of trouble, although it is a simple concatenation of naming containers and IDs, but it still cannot predict the range of
1. Bind the carriage return event on the page to the button
Copy Code code as follows:
function Entertextbox (e)
{
var msie = (document.all)? True:false;
var keycode;
if (!msie) keycode = window.event? E.keycode:e.which;
See Discuz is 2 drop-down list to merge, the Internet to find some information, and then wrote this small source, here and you share!
Run the effect chart as shown below (dark places are not selected because that is the classification at the top
1. Class libraries that need to be referenced
Copy Code code as follows:
Using System.Net;
Using System.IO;
Using System.Text;
Using System.Text.RegularExpressions;
2. Access to other Web site content key code
①, when you are doing web development, you may also encounter problems that I have encountered before, when using a TextBox control, the edge of the control cannot be completely overwritten by the background picture, as shown in Figure 1:
Because
I found a lot on the Internet in response to this problem, finding the answer is rather messy. In fact, the Page object in ASP.net has a property that lets the page submit or update the data, and then return to the original location of the page,
Today we are introducing the Ajax Calendar control provided by Microsoft. This control uses AJAX effects and sets events and effects through the foreground JS and style. Feature-rich, style own, real website design, MIS development of the necessary
Workaround:
Procedures related to the introduction
Main interface: not shipped order list (http://localhost:18888/Order/UnfilledOrdersList.aspx)
Sub-Interface: Order Details (http://localhost:18888/Order/ViewOrderDetail.aspx?OrderId= ID, where
Create a class library that establishes the following classes:
Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using system.web;//references Web namespaces
Using System.Text;
Namespace Timerhttpmodule
{
Of course, the site performance optimization is multifaceted, here to talk about these days to obtain:
1, the habit of writing code;
Again the complex logic, is also from the simplest start. In the process of writing code, many bad specifications
It was finally realized, but as a programmer, I always felt that I could not grasp the core of technology by using other components that were not open source. In fact, Microsoft has left an interface for us in net, let us do whatever we want.
First
Copy Code code as follows:
"
Added to the asp.net2.0 is the ability to encrypt part of the data in Web.config, which can be encrypted using RsaProtectedConfigurationProvider and
If the station is referred to a small such outside station Hotlinking bring the "no effect" flow will bring pressure to the webmaster (traffic is also to the money drop). For the anti-theft chain can be from two aspects to prevent, one is the server,
Pure IP data contains 381,085, you can download the query software to extract the data into a text format, and its code to UTF8, otherwise in the program read Chinese will garbled!
The following screenshot of the program is performed to analyze IP
String Fox;
Fox. ToLower () into lowercase letters
Fox. ToUpper () into uppercase letters
Fox. Trim () Remove space before and after
Fox. Trim (TrimChars) Remove other characters
Fox. TrimStart () Remove before space
Fox. TrimEnd () Delete space
In short, feel the site's
UrlIt is a very awkward thing to have parameters on the one hand, it is easy to inject, on the other hand, parameter transmission is very easy to divulge some useful information. And this article is mainly aimed at the Web
The Server.Transfer method transfers the execution process from the current ASPX file to another ASPX page on the same server. When Server.Transfer is invoked, the current ASPX page terminates execution, and the execution process is transferred to
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