URL Routing While clicking the Button

Posted by Mdjack under ASP.NET on 8/1/2012 | Points: 10 | Views : 1203 | Status : [Member] | Replies : 2
Hi friends,

Login credentials i want to use the URL rewriting without using the IIS settings.

Want to create URL routing based on User Subscription and User name.

On my site I have a several Level. For Example http://site.com/{0}/{1}/{2}/. . . . /{n}/*.aspx
here
1. {0}=> Subscription module
2. {1}=> Tenant/Template module.
3. {2}=> Application/Work space module.
. . .
. . .
. . .
. . .
n. {n}=> DB/ Template Management Module.

In my database I have a table called UserObjects, Members and Application_Mapping tables. The method get the data from UserObjects table and validate the user details and display the Subscription details on the page about the user. If the user select Subscription i want to routing the Page from http://www.xxxx.com/subscriptions/Home.aspx to http://www.xxx.com/SUBSCRIPTIONNAME.

N. MOHAMED ZACKKARIAH


Responses

Posted by: Ranjeet_8 on: 8/1/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Refer this url
it will help u.
http://www.codeproject.com/Articles/37917/URL-rewriting-using-ASP-NET-routing

Mdjack, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mdjack on: 8/2/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Ranjeet,

Thanks for your reply.
In my Global.asax
Application_Start event()
{
System.Web.Routing.RouteTable.Routes.MapPageRoute("RoutName","URL with Parameter",Page to handle it",Physical URL Access);
}

From My C#
While clicking the button i write the following code is working fine.
Response.RedirectToRoutePermanent("RouteName", new { "URL with Parameter" });

Now, The destination Page contains two iframes. those iframes are not showing the data. Here i attached the Images also. Pls help me.

 Download source file

N. MOHAMED ZACKKARIAH

Mdjack, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response