Summary
Continue to recommend. There are 7 articles in this issueArticle:
- ASP. NET applications in the product environmentProgram10 best practices
- Introduction to ASP. NET Ajax history control
- Make jquery Support SMART sensing in Visual Studio 2008
- Test version of LINQ to JSON
- Visual Studio topic style collection
- Embedded ASP. NET Server-side variables in client JavaScript scripts
- 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 ......
- Generate new encryption keys
- Encrypt sensitive sections of your web. config
- Use trusted SQL connections
- Set retail = "true" in your machine. config
- Create a new application pool for your site
- Set the memory limit for your application pool
- Create and appropriately use an app_offline.htm File
- Develop a repeatable deployment process and automate it
- Build and reference Release versions of all assemblies
- 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:
- ASP. NET Ajax history Part 1: server-side
- ASP. NET Ajax history part 2: client-side
- 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.