A series written a few years ago is now released here.
1. Http compression OverviewHTTP compression is mainly used to compress the file requested by the user through a compression method called gzip (the compression ratio is usually between 30%
Method 1:
Protected VoidDownload_click (ObjectSender, eventargs e ){// Obtain the object to downloadStringFilename = server. mappath ("~ /Upload/Computer Science and Technology .rar"); Fileinfo F =NewFileinfo (filename );// Set the file
In practice, it is rare to build pure composite controls (Asp. net2.0 secrets, Reading Notes-building composite controls), more is building a hybrid control. Here, the hybrid control refers to rewriting both the createchildcontrols () method of the
By default, ASP. net mvc websites dynamically Add the currently used ASP. net mvc version number in the HTTP Response Header. If you use the fiddler web debugger tool to view the connection to ASP. net MVC website http encapsulation package, you can
The following is a fully generated basic control that needs to be created from the system. web. UI. control class is derived, and all HTML content displayed in the browser must be specified. The rendered content is specified by the render method in
Htmltextwriter is a class specifically used to output HTML content to a browser. The following are some methods supported by this class:
Addattribute -- overloaded. ForHtmltextwriterThe object adds the specified tag attribute and value to the
Building a composite control, as its name implies, is to use existing controls to re-combine them into new controls.
All ASP. NET controls have the CONTROLS attribute to represent all their child controls. Building a compositecontrol control is
Unlike cookies, session status has no size limit. If there are extreme requirements, you can use session to save G data. In addition, the session can save more complex objects. For example, you can save a dataset in the session.
When a
Source: http://www.cnblogs.com/JimmyZhang/archive/2009/02/08/1371819.html Zhang Ziyang
Original article:Http://www.asp.net/learn/mvc/tutorial-04-cs.aspx
In this tutorial, I demonstrated two methods to display a series of database records. I
Topic
Is a collection of skin. The skin describes how the control should be displayed. It can define the style attributes, pictures, colors, and so on.
If you have multiple themes, you can select themes as needed to display the site. You
What is Dom? Why study Dom? Dom is a Document Object Model. Borrow a paragraph from w3pop.com :["W3C Document Object Model (DOM) isProgramAnd scripts to dynamically access and update the document content, structure, and style language platform"W3C
Development Environment: Windows Server 2008 Enterprise, Microsoft Visual Studio 2008 SP1,. NET Framework 3.5 SP1, Microsoft SQL Server 2008
Development Architecture: ASP. NET Ajax, WCF, ADO. NET Entity Framework
Development steps:
1. Create a
Main factors affecting database performance
Server hardware Factors
-Number of servers
-Memory, CPU, and disk
Network Environment
Database Design
Data Query
Suggestions on server hardware and network
Increase the number of servers and build a
C #
Code Main factors affecting performance
Resource Waste
-Memory waste
-Object Redundancy
-CPU waste
Unpacking and packing
-Conversion of value type and reference type
Algorithm
Generic
C # generic support: Class, struct, interface, delegate,
Page
Items
Ispostback
Sessionstate (true, false, readonly)
Server Control and view status
Use as few server controls as possible
If viewstate is not required, disable viewstate (the viewstate does not exist if the form does not exist)
Once mentioned in ASP. NET Server Control for State management, you will naturally think of viewstate, for simple properties, this thing is simple after all, and when it comes to control status, we will talk about how to program this item separately,
Viewstate analysis tool
Http://www.cnblogs.com/neuhawk/archive/2007/06/12/781071.html
View viewstate to Asp.netProgramRole and Impact
Http://www.cnblogs.com/hjf1223/archive/2006/09/29/518305.aspx
Introduction to viewstate
For Asp.net, only 2 MB files can be uploaded by default. The following configuration is added. You can customize the maximum file size.
Executiontimeout = "300"
Maxrequestlength = "40960"
Usefullyqualifiedredirecturl = "false"/>
If not, you can
Dotnetflexgrid is a native asynchronous table control of DOTNET. Its predecessor is the jquery flexigrid plug-in. We reconstructed most of the JavaScript code of flexigrid.CodeTo make it work more efficiently, with fewer bugs, and encapsulate it as
This article describes the control development by implementing a server control. The functions of this control are as follows:1. display the server time and keep updating2. Manually click the refresh button to obtain the server's latest time using
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