Introduction In this article I won't attempt to speak about "what asp.net callback is" and suppose that you already have some knowledge about that.I will provide information on how to use it , how to make it easy for use , and why we should use callback instead of other Ajax frameworks and finally how to make it a reusable user control.If you want to dig deep into callback , just search some through the internet .surely you will find more resource and articles about it. Getting start with callback and implementing it ,is boring and time consuming. And also if you had to use it in a project ,your development speed will be decreased . So what is the solution? How we can away from callback complexity but easily use its cool ability? The answer is “create a User Control, drag it to page and use its capabilities." This article exactly answer this question, and describe advantage of using callback.BackgroundSome month ago in our company when we were working on a project for a charitable institution we faced a problem . The project was rewriting of a dos application in web platform . But when beta version of project has installed they reported that using new application is so time consuming and at least twice users needed to insert daily records.They were right, Pages post back with slow dial up connection really confused them. Instead dos application was Enter based, user friendly and not include any Post Back and waiting time for response from server. As a result we had to make some basic changes on project. We had to remove post backs from the most of pages and make them callback. but as I said Implementing callback in asp.net to some extent is boring ,so we decided to make it a user control. Choosing between Callback and Classic Ajax or other Ajax Framework:Before Microsoft has introduce callback in asp.net 2 , we have to use Classic Ajax (i.e. XMLHttpRequest or Microsoft.XMLHTTP) for making asynchronous pages. but now with implementing IPotbackeventhandler Interface we can make asynchronous calls to server and render dynamic content from server without any post back. Read more: Codeproject
0 comments:
Post a Comment