Geeks With Blogs

Sankarsan Bose .NET Diaries January 2009 Entries
Cross Page Postback in ASP.NET
Normally we use the term postback when an ASP.NET page submits it's content back to that page itself.But there can be situation when a page needs to submit it's content to a different target page.This is known as cross page postback.In this post we will discuss about how to handle and implement cross page postback scenario. Now to make a page postback to another page we have set the PostBackUrl property as shown below: <asp:Button ID="Button2" runat="server" Text="CrossPagePostback" PostBackUrl="~/TargetForm.a... ......

Posted On Saturday, January 24, 2009 11:47 AM

Developing Custom RouteHandler
In my last post I had discussed about the key classes/interfaces involved in the ASP.NET MVC routing process.In this post we will develop sample route handler.To implement a route handler we need to implement the System.Web.Routing.IRouteHa... interface.The GetHttpHandler method of this interface should create the instance of IHttpHandler which in turn has to create the controller instance.Let us concentrate on this IHttpHandler implementation first.Take a close look at the code below: public class ......

Posted On Sunday, January 18, 2009 12:48 AM

ASP.NET MVC Routing
While requesting some resource from an web server we normally type an URL like www.xyz.com/default.aspx?ops=1 in the browser address bar.In this case the URL maps directly to a file residing in the server.Now say we have an URL like www.xyz.com/default/1 .In this case the web application has to be intelligent enough to parse the URL and find out which resource or request handler it will map to.This technique of parsing URL patterns and deciding on the requested resource is known as URL Routing. Along ......

Posted On Saturday, January 10, 2009 12:55 AM

Copyright © sankarsan | Powered by: GeeksWithBlogs.net