Recommended in this week's ASP. NET English Technical article [a long time ago-02/26]: immutability, interpolationmode, compositingquality, performance optimization, Single Sign-On, spring. n

Source: Internet
Author: User

Summary

I haven't written it for a long time. I don't want to make excuses for myself. Whatever the case, I still need to pick it up. A total of 9 articlesArticle:

    1. Variable type in C #
    2. Interpolationmode and compositingquality when using system. Drawing to generate thumbnails
    3. ASP. NET performance optimization
    4. Single Sign-on implementation in ASP. NET 2.0
    5. Integrate spring. Net into ASP. NET web sites
    6. Develop applications for FacebookProgram
    7. Step by step learn how to use MySQL in ASP. NET
    8. ASP. NET menu and sitemap are automatically intercepted Based on Security Configuration
    9. Microsoft Web Deployment Tool-tech preview 1

 

[1]Immutability in C #(Unchangeable type in C)

This is a summary-some types in C # are immutable. That is to say, once an object is created, its values cannot be changed. Patrick smacchia said that doing so has the following benefits:

    1. They simplify multithreaded programming.
    2. They can be used as hashtable keys.
    3. They simplify state comparison.

For more benefits and specific implementation methods, I remember to clearly understand them in Objective C #. If you are interested, please take a look.

This article aggregates a lot of immutable types in C #, including why to introduce this, when to use it, and how to use it. Although it's not something new, it's okay to get a deeper impression.

 

[2]What interpolationmode and compositingquality to use when generating thumbnails via system. Drawing(What interpolationmode and compositingquality should be used to generate thumbnails using system. Drawing)

It seems that there is no direct relationship with ASP. NET, but in fact, the function of generating thumbnails is very common in ASP. NET. This article provides a testing program that compares the generation of thumbnails under different nterpolationmodes and compositingquality. The results are also illustrated. The following is a part of the results:

If you have such requirements, you may wish to optimize the method for generating thumbnails in the program as needed.

 

[3]ASP. NET performance tips(ASP. NET performance optimization)

A very good article, without too much profound content, is a bit of information. However, at any time, there are always too many things worth considering in program performance optimization. Often the fish and the bear's paw cannot have both sides, or the whole body can be pulled apart. The practice in this article is not Jin Ke Yu law, but it also requires a detailed analysis of specific problems during implementation.

The article provides the following details:

    1. Return multiple recordset
    2. Paged Data Access
    3. Using Cache API (programmatic way of caching)
    4. Per-request caching
    5. Page output caching
    6. Kernel caching (only with IIS 6.0)
    7. Connection Pooling
    8. Using gzip Compression
    9. Server Control view State
    10. Trim the page size
    11. Using page. ispostback to minimize redundant processing
    12. Using server. Transfer instead of response. Redirect
    13. Avoid using page. databind, instead call data bind on specific control
    14. Minimize callto databinder. Eval
    15. Disable unnecessary session state
    16. Use sqldatareader to visit the read-only data instead of Dataset
    17. Use of server controls

 

[4]Understanding single sign-on in ASP. NET 2.0(Single Sign-on implementation in ASP. NET 2.0)

There are many articles and discussions about single sign-on. There are countless XX passport and xx id. However, in this article, the author finds its own way to achieve single-point logon by fixing the machinekey of different ASP. NET applications for the same method ...... It's really amazing.

The article also comes with a small sample program, but after hearing the machinekey method, the sample program is very simple.

 

[5]Integrating spring. Net with ASP. NET web site(Integrate Spring. Net into ASP. NET web sites)

Spring. NET is very powerful. This article demonstrates how to integrate it with ASP. NET through a sample program.

Configuration and configuration, a large batch of configuration files are slowly written ...... Configure it slowly

 

[6]Developing an application for Facebook(Develop applications for Facebook)

Facebook has been gaining popularity recently. Its excellent scalability has attracted the attention of many developers and has developed a language named Facebook markup language. This article uses an example program to demonstrate the concepts of fbml and non-dead applications. Try it after a meal.

 

[7]A step-by-step guide to using MySQL with ASP. NET(Learn how to use MySQL in ASP. NET step by step)

Although MySQL is not a Microsoft product, its good performance, simple use, and free features (compared with SQL Server) are still very attractive. This series of articles introduces how to use MySQL in ASP. NET.

In fact, ASP. NET itself does not have any rigid rules on the database. With the provider, any database can basically work perfectly with it. However, it is a good idea to know about MySQL through this series of articles:

    1. The first article introduces some basic knowledge about MySQL, including installation, configuration, database creation, and table creation;
    2. The second article introduces how to manage user permissions in MySQL and some common operations for connecting ASP. NET to MySQL;
    3. The third article introduces some common problems that may be encountered during the development process, different connections in 1.1 and 2.0, and handling methods;
    4. The fourth article introduces how to use the stored procedure in MySQL. Currently, the premise is that MySQL must be of version 5.0 or later.

However, the author seems to have no intention of taking over the chart. Let's continue to wait and see.

 

[8]ASP. NET menu and sitemap Security trimming(ASP. NET menu and sitemap are automatically intercepted based on security configuration)

(Title translation is really a headache.) in the navigation bar of some websites, anonymous users are similar. There are several more links after logon. If you are an administrator, there are more options. I thought this would require manual implementation. I didn't expect that ASP. NET 2.0 already has built-in support (this is just a poor News ).

You only need to add this string When configuring site map:

<Sitemap Enabled= "True">
 
<Providers>
 
<Clear/>
 
<Add Sitemapfile= "Web. sitemap" Name= "Aspnetxmlsitemapprovider" Type= "System. Web. xmlsitemapprovider" Securitytrimmingenabled= "True"/>
</Providers>
 
</Sitemap>

Then ASP. NET automatically checks the role of the current user at runtime, and dynamically determines which options he can see on the navigation menu based on the different pages that each role can access in the configuration file.

 

 

[9]Microsoft Web Deployment Tool-tech preview 1-x86(Microsoft Web Deployment Tool-tech preview 1)

This is a preview version of Microsoft's official Web Application Deployment Tool! The following features are supported:

    1. Synchronization and snapshot of IIS 6.0/IIS 7.0
    2. Migration from IIS 6.0
    3. Analysis of IIS 6.0 installed features
    4. Troubleshooting and validation features

To use this item, you must meet the following conditions:

    1. You must be using Windows Server 2003 or Windows Server 2008.
    2. The. NET 2.0 Framework SP1 or greater must be installed.
    3. Internet Information Services 6.0 or 7.0 must be installed in order to perform operations on IIS.
    4. You must install the tool as an administrator. If user access control (UAC) is enabled, you must use the "run as administrator" option when installing.
Related Article

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.