26 common performance optimization methods in ASP. NET

To access database resources, you need to create a connection, open a connection, and close the connection. These processes need to exchange information with the database multiple times for authentication, which consumes server resources. ASP. NET

Asp.net user control direct value

Such as: user control header, affiche, Obtain the header value in affiche (if these values must be public) Add in affiche. CS Multiple Attribute values: Page P = This. Parent. Page; usercontrol UC = P. findcontrol ("header1") as

How to make Apache run ASP. NET/ASP. NET 2.0

How to make Apache run ASP. NET/ASP. NET 2.0 Don't ask me why... But I 've been asked to make Apache run ASP. NET. It worked! Even worked with ASP. NET 2.0 site! Following are the instruction to Make ASP. NET work under Apache:

ASP. NET format date

1. Date Format Method for binding: 2. How to format data items such as DataGrid and datalist:E. Item. Cell [0]. Text = convert. todatetime (E. Item. Cell [0]. Text). to1_datestring ();3. Convert the date display format with the string type:String.

Regular Expression is used to generate static Web pages in ASP. NET.

Static void main (){ // Create proxy and request a service // Proxy = new proxy (); // Proxy. Request (); // Wait for user Generationstaticpage P = new generationstaticpage (); String pagecontent = P. generationpage (); Console. Write (pagecontent );

ASP. NET built-in Object Server

Note: This article is mainly for reference to ASP. NET evening notes. I added my own documents. Objects that can be used without the need for new during Asp.net development, such: Request, response, server, session, Cookie, ApplicationAll

ASP. NET gridview controls

The gridview is a relatively powerful control, which is also complicated to use. Once again, we will summarize the usage experience of the gridview: 1. First, we will show the common methods and attributes of the gridview control: the gridview

Asp.net does not use templates to generate static pages

1 Using System; 2 Using System. collections; 3 Using System. componentmodel; 4 Using System. Data; 5 Using System. drawing; 6 Using System. Web; 7 Using System. Web. sessionstate; 8

Create a web site in ASP. NET

Previously, I used ASP, PHP, and JSP to write websites. Code Site security is always a headache. Although we have compiled user logon, registration, and verification pages, the effect is always unsatisfactory. Sometimes we have to use a large number

ASP. NET practical skills (1)

This article mainly introduces some common methods in ASP. NET programming. Code Skills, performance optimization, etc. 1. execution on the tracking page Setting breakpoints is a common method in page debugging. In addition, you can view the

Asp.net generates a specified size thumbnail

Asp.net generates a specified size thumbnail. If the image size is smaller than the specified size, it is displayed in the middle of the specified size canvas. If the image size is greater than the specified size, the image is scaled proportionally,

Asp.net learning procedure

Step 1: master one. Net object-oriented language, C # Or VB. net I strongly oppose learning ASP. NET without a systematic introduction to an object-oriented language. ASP. NET is a comprehensive object-oriented technology. If you do not understand

[Self-study Notes] ASP. NET tips

1. Change the text on the button First look at the effect: 1, 2, 3, One button and one label Control Code: Think about it again Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->

A simple example of ASP. NET in itextsharp (converted based on the JSP version of itext)

Using System; Using System. collections; Using System. componentmodel; Using System. Data; Using System. drawing; Using System. Web; Using System. Web. sessionstate; Using System. Web. UI; Using System. Web. UI.

How to deploy the Asp.net 2.0 website to the server

One improvement of. NET 2.0 compared with. NET 1.1 is the development of Web Program Without the bin directory, the reference to the class library is automatically placed in the web. config file. The advantage is that you do not need to explicitly

ASP. net mvc Best Practices (2)

Address: http://space.itpub.net/740297/viewspace-588774   2. create an extension method for urlhelper to map your JavaScript, stylesheet, and image folders to ASP by default. net MVC creates content and scripts folders to store them, but I do

Asp.net MVC rule-based permission Design

Previous ArticleArticleWe briefly introduce the application of a level-1 menu. In actual design, the menu information is basically stored in the XML file of sitemap, And the menu also involves permissions. This chapter describes how to design a

Asp.net export an Excel report (solving the problem of no grid)

As unit activities increase 4s stores The Excel or Word document export function is particularly important when you want to view the event registration requirements. This greatly reduces the editing time and intensity. Today, I spent some time

ASP. NET Website permission design implementation (1) -- use powerdesigner for Database Design

Here we use powerdesigner for a preliminary design, which may be modified later. 1. Start powerdesigner to create a physical data model.       2. Toolbar   3. Create a table model   4. Add the first table. You can double-click the

ASP. NET custom application configuration

1. The program calls ConfigurationManager. GetSection (sectionName) 2. Handler implements the Create (object parent, object configContext, XmlNode section) method of IConfigurationSectionHandler. 3. parse attribute & subNode of section through

Total Pages: 1800 1 .... 852 853 854 855 856 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.