Recommended in this week's ASP. NET English Technical article [02/17-02/23]: Ajax, history, jquery, best practices, LINQ, Visual Studio, JavaScript, IIS

Source: Internet
Author: User

Summary

Continue to recommend. There are 7 articles in this issueArticle:

    1. ASP. NET applications in the product environmentProgram10 best practices
    2. Introduction to ASP. NET Ajax history control
    3. Make jquery Support SMART sensing in Visual Studio 2008
    4. Test version of LINQ to JSON
    5. Visual Studio topic style collection
    6. Embedded ASP. NET Server-side variables in client JavaScript scripts
    7. Use Visual Studio 2008 to remotely debug Web applications in IIS

 

[1]Top 10 Best Practices for production ASP. NET Applications(10 Best Practices for ASP. NET applications in the product environment)

This article introduces the so-called "10 Best Practices for ASP. NET applications in the product environment", but I feel that there are some titles ......

    1. Generate new encryption keys
    2. Encrypt sensitive sections of your web. config
    3. Use trusted SQL connections
    4. Set retail = "true" in your machine. config
    5. Create a new application pool for your site
    6. Set the memory limit for your application pool
    7. Create and appropriately use an app_offline.htm File
    8. Develop a repeatable deployment process and automate it
    9. Build and reference Release versions of all assemblies
    10. Load Test

 

[2]ASP. NET Ajax history tutorials(Introduction to ASP. NET Ajax history control)

The history control recently introduced by ASP. net ajax can help us maintain the "History" record on the page in Ajax applications. This article details how to use the history control.

The series contains three articles:

    1. ASP. NET Ajax history Part 1: server-side
    2. ASP. NET Ajax history part 2: client-side
    3. ASP. NET Ajax history part 3: server-side + client-side

The author also providesCodeDownload: quarterbackrater.zip

And an Online Demo: here

 

[3]Jquery intelliisense in Visual Studio 2008(IN Visual Studio 2008, let jquery Support SMART sensing)

In the previous recommendation, Visual Studio 2008 provided Intelligent Sensing for jquery, at that time, I was still lamenting that it would be nice to add the XML annotations required by vs smart sensing. Fortunately, some smart people use programs to fulfill this desire.

The author's tool gets XML comments from the jquery-docs-xml.xml and then generates XML versions that vs can recognize, such:

 
Jquery =$ =Function(Expr, context ){
 
/// <Summary>
/// 1: $ (expr, context)-This function accepts a string containing a CSS or basic XPath selector which is then used to match a set of elements.
 
/// 2: $ (HTML)-create DOM elements on-the-fly from the provided string of raw HTML.
 
/// 3: $ (elems)-wrap jquery functionality around a single or multiple Dom element (s ).
 
/// 4: $ (FN)-A shorthand for $ (document ).
 
/// </Summary>
 
/// <Returns type = "jquery"> </returns>
 
/// <Param name = "expr"/>
 
/// 1: expr-an expression to search
/// 2: HTML-a string of HTML to create on the fly.
 
/// 3: elems-dom element (s) to be encapsulated by a jquery object.
 
/// 4: FN-the function to execute when the Dom is ready.
 
/// </Param>
 
/// <Param name = "context" Optional = "true"/>
 
/// 1: Context-(optional) a DOM element, document or jquery to use as context
 
/// </Param>
 
/// <Field type = "string" name = "jquery"> the current version of jquery. </field>
/// <Field type = "Number" name = "length"> the number of elements currently matched. </field>
 
};

Then, everything is fine.

 

[4]LINQ to JSON Beta(Test version of LINQ to JSON)

In the previous recommendation, we introduced a LINQ to JavaScript that implements a "like" LINQ syntax in JavaScript. However, this post will introduce the real-price LINQ provider to JSON. The function is to enable the conversion between JSON strings and objects through LINQ.

For example:

 
List <post> posts = getposts ();
 
 
 
Jobject RSS =
 
NewJobject (
 
NewJproperty ("Channel",
 
NewJobject (
 
NewJproperty ("Title","James Newton-King"),
NewJproperty ("Link",Http://james.newtonking.com"),
 
NewJproperty ("Description","James Newton-King's blog ."),
 
NewJproperty ("Item",
 
NewJarray (
 
From PInPosts
 
Orderby P. Title
 
SelectNewJobject (
 
NewJproperty ("Title", P. Title ),
NewJproperty ("Description", P. Description ),
 
NewJproperty ("Link", P. Link ),
 
NewJproperty ("Category",
 
NewJarray (
 
From CInP. Categories
 
SelectNewJvalue (c )))))))));
 
 
 
Console. writeline (RSS. tostring ());

The generated JSON is as follows:

 
//{
 
// "Channel ":{
// "Title": "James Newton-King ",
 
// "Link": "http://james.newtonking.com ",
 
// "Description": "James Newton-King's blog .",
 
// "Item ":[
 
//{
 
// "Title": "JSON. Net 1.3 + new license + now on codeplex ",
 
// "Description": "annoucing the release of JSON. Net 1.3, the MIT license and the source being available on codeplex ",
 
// "Link": "http://james.newtonking.com/projects/json-net.aspx ",
 
// "Category ":[
// "JSON. Net ",
 
// "Codeplex"
 
//]
 
//},
 
//{
 
// "Title": "LINQ to JSON beta ",
 
// "Description": "annoucing LINQ to JSON ",
 
// "Link": "http://james.newtonking.com/projects/json-net.aspx ",
 
// "Category ":[
 
// "JSON. Net ",
 
// "LINQ"
 
//]
//}
 
//]
 
//}
 
//}

 

[5]Visual Studio programmer themes Gallery(Visual Studio theme style collection)

Visual Studio 2008 allows you to import and export ide custom settings (including color scheme and editor font. In this way, "haokan" has collected a large number of such styles. Visit two of them first:

 

[6]Embedding ASP. NET Server variables in client JavaScript, part 2(Embed the second part of the ASP. NET Server variable in the client Javascript script)

This is also introduced in the previous recommendation, but the author has obviously made some improvements. For example, you can add the IDs of all the server-side controls in a container:

 
// *** Add all client IDS-note this may cause naming conflicts on duplicate names
// *** In separate naming containers. First one wins!
 
Scriptvars. addclientids (This,True);

This section is generated:

 
VaR servervars = {
 
"Name":"Rick Strahl",
 
"Company":"Rick's \" East \ West \ "trading",
 
"Entered":NewDate (888054678218 ),
 
"Counter"12.22,
 
"Txtnamevalue":"",
 
"Headid":"Ctl00_head",
"Form1id":"Aspnetform",
 
"Contentid":"Ctl00_content",
 
"Txtnameid":"Ctl00_content_txtname",
 
"Btnsubmitid":"Ctl00_content_btnsubmit",
 
"Panel1id":"Ctl00_content_panel1",
 
"Txtpaneltextboxid":"Ctl00_content_txtpaneltextbox",
 
"Replistid":"Ctl00_content_replist",
 
"Gdvtestid":"Ctl00_content_gdvtest"
 
};

There are many other similar new features.

 

[7]Debugging IIS 7.0 Web applications remotely with Visual Studio 2008(Use Visual Studio 2008 to remotely debug Web applications in IIS)

You can't leave it alone. Visual Studio and IIS are becoming more and more powerful. The title of the article illustrates this fact ......

This article introduces how to remotely debug Web applications in IIS using Visual Studio 2008. If you are interested or want to try it out, you can check it out.

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.