We all know that the use of cache can greatly improve the Asp.net ApplicationProgramSo how much performance can be improved? I did a small test.
1. Create a new Web Application in vs2003 and add a DataGrid Control on the page to display the content
"Http: //" is the protocol name.
"Http://www.luohx.com/" is a domain name
"AAA" is the site name
"BBB. aspx" is the page name (file name)
"Id = 5 & name = Kelli" is a parameter
[1] obtain the complete URL (protocol name + domain name + site
Meta Tags undoubtedly play a major role in website promotion. Search engines use meta tags to obtain webpage-related information, such as keywords and description. If ASP. net to dynamically generate pages, especially when using template pages, it
From using a basic text editor to creating a tag page, web development has gone through a long process. Currently, the integrated development environment (IDE) provides graphical representation for almost every aspect of the development process. In
There are already many methods for URL rewriting, but most of them all have a disadvantage that web pages without an extension are not supported. For example, converting a http://www.aaa.com/jyk to a http://www.aaa.com/topic.aspx? Id = jyk.
The
With JS
Function recheck (form)
{
VaR temp = Document. getelementbyid ("categories ");Temp. value = (temp. value. substring (0, 1) = ",")? Temp. value. substring (1, temp. value. Length): temp. value;Return true;
}
Function CK (o){VaR v = O.
1. Detected request. Form values that are potentially dangerous
Cause:
(1) The validaterequest attribute is not correctly set on the data submission page or webconfig.
(2) Two characters are written in HTML, causing
Solution:
Solution 1: add this
Add an image control to the page and set its style attribute to: filter: chroma (color: #000000) Because automatically generated GIF images are always black backgrounds. Then write the following code in the background code. (See demo) using
The GUID is a alphanumeric identifier used to indicate the unique installation of a product. Guids are used in many popular software applications, such as web browsers and media players.
The GUID format is "XXXXXXXX-XXXX-xxxxxxxxxxxx", where each X
Load Balancing in ASP. NET sites:
Based on the HTTP protocol, we may find that we have to solve two problems:
First, to achieve load balancing, we need a Load balancer.
You can use DNS round robin to obtain different IP addresses for each DNS query
Preface:
I am engaged in Web development. I am no longer familiar with the word MVC. For Asp.net developers, I may be more familiar with web-form-based development. In order to allow myself to sort out the entire learning knowledge, we also discuss
Document directory
Introduction
Important attributes
Instance
Introduction
Popupcontrol can pop up any type of controls, whether on the server control or HTML control. When a control obtains the focus, another control is displayed. After some
App_globalresources in Asp.net 2.0 can be used to solve the localization problem. The program automatically determines the localized Interface Based on the browser's language preferences.
Create a resx resource file in app_globalresources. For
Using system; using system. data; using system. configuration; using system. web; using system. web. security; using system. web. ui; using system. web. UI. webcontrols; using system. web. UI. webcontrols. webparts; using system. web. UI.
Summary of databinder. Eval usage in Asp.net
// bind a field // implement automatic numberingCommon method (the best performance of these three methods)Other usage // If the attribute is of the string type, tostring () is not required.Example of
There are many ways to implement a function in ASP. net mvc. Today we will discuss the differences between using renderpartial and renderaction to render part of the content in the view.
For example, we want to present the content shown in the
You only need to add the following code in Web. config.
You can write code in error. aspx to write the error information to the log file.
Using system;
Using system. Web;
Using system. IO;
Namespace gridview warehouse receiving ticket
Modify the following file on the server:
Find the Web. config file in the directory c: \ windows \ Microsoft. NET \ framework64 \ v2.0.50727 \ config. The server here is 64-bit. If it is 32-bit, the directory is c: \ windows \ Microsoft. NET \
When creating an Asp.net web application, the system prompts that IIS is not running Asp.net version 1.1.
1. If your web server uses a fixed IP address, make sure that "Default web site" is used in your "Internet Information Service" and the IP
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