hi all,
am using mvc3 razor application in my project. my problem is i have 1 main root folder under root folder 3 sub folders are there, each sub folder have 1 control. so how to set the default page under particular control.
folder names are Administrator,Customer,Merchant and my root folder is areas. now how set the default page 'Newcustomer.cshtml' in Customer folder Customercontrol. my code like this in golbal.asax page
routes.MapRoute(
"custom",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index",id = UrlParameter.Optional }
);
but i got the error like this
~/Views/Customer/Newcustomer.aspx
~/Views/Customer/Newcustomer.ascx
~/Views/Shared/Newcustomer.aspx
~/Views/Shared/Newcustomer.ascx
~/Views/Customer/Newcustomer.cshtml
~/Views/Customer/Newcustomer.vbhtml
~/Views/Shared/Newcustomer.cshtml
~/Views/Shared/Newcustomer.vbhtml
http://localhost:2023/Customer/Customer/Newcustomer
am enter like this open my default login page
please help me..
thanks