DCSIMG
ASP.NET - Itai Goldstein

Browse by Tags

All Tags » ASP.NET (RSS)

Redirecting on a callback

In one of my previous posts , I reviewed a way to handle client side events on the server side by using the Callback feature of ASP.NET 2.0. But what about redirecting from the current page when you handle the client event? You’ll find that it is not possible: “Response.Redirect cannot be called in a Page callback.” or “Server.Transfer cannot be called in a Page callback.” messages will appear in case you’ll use Response.Redirect or Server.Transfer operations In order to redirect to another page...

Improve your ASP.NET Website User Experience: Flush Down your partial Response

There are times when your website page needs to do some heavy work on the server side and you don’t want your user to wait till the work is complete to get a response. In these cases you can use the Response.Write & Response.Flush methods, and here is a short example (on the HTML source side): <% Response . Write( "1st response..." ); %> <% Response . Flush(); %> <% System . Threading . Thread . Sleep( 2000 ); %> <% Response . Write( "2nd response..."...
Posted by itai | 10 comment(s)

Exposing User Control client events to host Page server side

Download Source Solution: Server side events handling is a great feature of ASP.NET . You can enjoy your server side framework which is usually easier to maintain than your client side code. One of the drawbacks of server side events handling is the Postback , in which the request is send to the server with all its weight and the response renders the whole HTML again - the user suffers from a visual effect in which the page he’s viewing disappears and reappearing after it finished his rendering process...
Posted by itai | 3 comment(s)