ASP.NET 4.0 was a major step forward in programming. Microsoft has done incredible work performance. One of them is property can enable in asp.net 4.0 script manager. Say that it explore in detail. As you all know, Microsoft is providing a network delivery content for all the Ajax script that is used by Microsoft Ajax and any version of jQuery and JQuery UI. This property can enable script manager will retrieve all the script that can automatically. Developer does not have to worry about. As you know generation browsers are like IE8 and Firefox creates a new thread for each JS or CSS include in the Web page where they come from the CDN (content delivery network). Therefore, it will be largely step towards it. Let us take an example to explore things. I take a simple example that will demonstrate the use of this. I pray a TextBox and a button. The button click event will update the text box text property. I used to use Microsoft Ajax update panel. For this first I needed a script manager so I took the script manager and I set its property EnalbleCdn = true. So without publish any return after return only the portion that are required. I putted the text box in the control panel to update content model and I created the trigger back asynchronous post for the button click event. It will therefore updated the text in the text box without creating a post back. Let's look at how I created. Here is simple HTML to do so.
Now, I'm going to create a click event that will change the text in the text box '. Here is a code to do this.
protected void btnHelloWorld_Click (object sender, EventArgs e) {txtHelloWorld.Text = "Hello World";}
It is running let's with Ctrl + F5, and it will be displayed in the browser firefox as follows.
Now see us his point of view source to see how things will look like. Here is a screenshot display source.
As you can see its extracting all JS Microsoft Ajax Content delivery network. Isn't that much. You just activate property CAN = true and it will still work. It is the power of asp.net 4.0. Hope you liked it. Stay tuned over 2 side.
No comments:
Post a Comment