vendredi 8 janvier 2010

Morocco .Net User Group (MONUG)




The First .Net Moroccan Comunity Group on FaceBook
Morocco .Net User Group (MONUG)

My First Project @ CodePlex.com

CallBack Webcontrols @ CodePlex.com


Project Activity

Page Views: 378
Visits : 202
Downloads : 40


Not bad for the first week!

mercredi 6 janvier 2010

CallBack WebControls

Introduction

In this article, I present another aspect of communication in the Asp. Net 2.0, named "CallBack” and how it can be used for a web application asp.net soft light and especially preformative.


For this I created a set of "WebControls" based on the "CallBack" not on "PostBack" but that works exactly like the standard controls of Asp.net 2.0


I will first start by explaining important concepts for understanding the article and finally I'll show you an example in practice

CallBack ?

The Callback is among the novelties of the ASP. Net 2.0, it can communicate with the server without posting the whole page ..

The difference between Callback and postback is that in the PostBack whenever you click a button, all the HTML of the page and its controls is regenerated (Render).
By cons in the callback is not the case and it is very important! Why regenerate all the HTML page? Is it important to do? when I just want to add a row in my GridView (for example).

So for a web application slightly, the "Render" of a control should be targeted and not overall ..

I mean no need to generate all the html code of the page and its controls.

You can use "Ajax control" but I do not know the code generated behind, so I can control what happens in my application.

To better understand this we will see the page life cycle with 2 modes (PostBack and CallBack)....

Continue the Article at CodeProject.com

Source Code at CodePlex.com


Rechercher dans ce blog