Dear ALL;
I have created an IRouteHandler to route localized pages.
public class LocalizedRouteHandler : IRouteHandler
{
public LocalizedRouteHandler()
{
}
public IHttpHandler GetHttpHandler(RequestContext requestContext)
{
string routeUrl;
if (requestContext.RouteData.Values["url"] == null)
routeUrl = "Index.aspx";
else
routeUrl = requestContext.RouteData.Values["url"].ToString();
string pageUrl = string.Format("~/{0}", !string.IsNullOrEmpty(routeUrl) ? routeUrl : string.Empty);
var page = BuildManager.CreateInstanceFromVirtualPath(pageUrl, typeof(Page)) as IHttpHandler;
if (page != null)
{
Page webForm = page as Page;
if (webForm != null)
{
webFor ...
Go to the complete details ...