Click here to Skip to main content
15,907,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
I have a page in .aspx .Can we put this .aspx page as default page in MVC4 Application . After login through .aspx page i want to redirect to Mvc index page.

Can we do like this .We have any option for this in MVC4
Posted
Comments
Ajay_Babu 30-Dec-13 0:56am    
will you give the names of pages.i will have a clear understand..

http://www.webhostingbrowse.com/web-hosting-guides/how-to-set-default-page-in-iis7/[^]



In MVC4, set default page in RouteConfig.cs.

You can go through this link gor further info.
Routing Basics in ASP.NET MVC[^]
 
Share this answer
 
v2
after login through .aspx page write in .cs as
C#
Response.Redirect("http://localhost/Home/index")

or if .aspx is in the same project then
C#
Response.Redirect("Home/index")

or else you can go for routing
http://nbende.wordpress.com/2012/08/26/mvc-downloads/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900