Click here to Skip to main content
15,891,777 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.NET MVC Single Page Application with Type Script Pin
Richard MacCutchan14-Dec-16 22:03
mveRichard MacCutchan14-Dec-16 22:03 
AnswerRe: ASP.NET MVC Single Page Application with Type Script Pin
Afzaal Ahmad Zeeshan15-Dec-16 6:27
professionalAfzaal Ahmad Zeeshan15-Dec-16 6:27 
GeneralRe: ASP.NET MVC Single Page Application with Type Script Pin
indian14315-Dec-16 7:54
indian14315-Dec-16 7:54 
GeneralRe: ASP.NET MVC Single Page Application with Type Script Pin
Afzaal Ahmad Zeeshan15-Dec-16 7:59
professionalAfzaal Ahmad Zeeshan15-Dec-16 7:59 
QuestionHow to pass primary key ID field as parameter/UPDATE Statement Pin
Bootzilla3314-Dec-16 10:07
Bootzilla3314-Dec-16 10:07 
AnswerRe: How to pass primary key ID field as parameter/UPDATE Statement Pin
Richard MacCutchan14-Dec-16 22:01
mveRichard MacCutchan14-Dec-16 22:01 
AnswerRe: How to pass primary key ID field as parameter/UPDATE Statement Pin
Richard Deeming15-Dec-16 2:21
mveRichard Deeming15-Dec-16 2:21 
QuestionThe resource cannot be found. for mvc application Pin
indian14314-Dec-16 9:52
indian14314-Dec-16 9:52 
Hi All,

I have an MVC application which when I run the application it goes to http://localhost:49626/login.aspx?ReturnUrl=%2fhome%2findex, I am not sure why it goes and searches for the Login.aspx url, I am new to MVC, any help is going to be very helpful, I even set as specific page as this: home/index, still it goes onto login.aspx page.

I am very poor with url, I have register routes as below:
public static void RegisterRoutes(RouteCollection routes)
       {
           routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

           routes.MapRoute(
               name: "Default",
               url: "{controller}/{action}/{id}",
               defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
           );
       }
Startup class as below
public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            //app.MapSignalR();
            // For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=316888
        }
    }

I have area registration as below:
public class HelpPageAreaRegistration : AreaRegistration
{
    public override string AreaName
    {
        get
        {
            return "HelpPage";
        }
    }

    public override void RegisterArea(AreaRegistrationContext context)
    {
        context.MapRoute(
            "HelpPage_Default",
            "Help/{action}/{apiId}",
            new { controller = "Help", action = "Index", apiId = UrlParameter.Optional });

        HelpPageConfig.Register(GlobalConfiguration.Configuration);
    }
}

Any help is going to be very helpful for me as I am very poor in understanding the route mapping and configuration of ASP.Net MVC applications, any help a code snippet, a link or even suggestion would be very helpful, thanks in advance.
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

AnswerRe: The resource cannot be found. for mvc application Pin
Richard Deeming15-Dec-16 2:19
mveRichard Deeming15-Dec-16 2:19 
QuestionExport Gridview data to excel in asp.net Pin
Member 128096229-Dec-16 22:16
Member 128096229-Dec-16 22:16 
AnswerRe: Export Gridview data to excel in asp.net Pin
Michael_Davies9-Dec-16 22:24
Michael_Davies9-Dec-16 22:24 
QuestionRe: Export Gridview data to excel in asp.net Pin
Richard MacCutchan9-Dec-16 23:15
mveRichard MacCutchan9-Dec-16 23:15 
AnswerRe: Export Gridview data to excel in asp.net Pin
Afzaal Ahmad Zeeshan10-Dec-16 1:18
professionalAfzaal Ahmad Zeeshan10-Dec-16 1:18 
QuestionPopulate textboxes on dropdown selection using mvc4.net sqlserver2013 Pin
Member 104841628-Dec-16 9:40
Member 104841628-Dec-16 9:40 
AnswerRe: Populate textboxes on dropdown selection using mvc4.net sqlserver2013 Pin
ZurdoDev9-Dec-16 3:31
professionalZurdoDev9-Dec-16 3:31 
QuestionHow to bypass fields that have required validation to go to next page Pin
Bootzilla338-Dec-16 6:56
Bootzilla338-Dec-16 6:56 
AnswerRe: How to bypass fields that have required validation to go to next page Pin
jkirkerx8-Dec-16 8:08
professionaljkirkerx8-Dec-16 8:08 
AnswerRe: How to bypass fields that have required validation to go to next page Pin
bVagadishnu8-Dec-16 8:24
bVagadishnu8-Dec-16 8:24 
GeneralRe: How to bypass fields that have required validation to go to next page Pin
Bootzilla338-Dec-16 17:02
Bootzilla338-Dec-16 17:02 
AnswerRe: How to bypass fields that have required validation to go to next page Pin
Richard Deeming9-Dec-16 2:42
mveRichard Deeming9-Dec-16 2:42 
QuestionCall JavaScript function from c# code in cshtml Pin
sunsher7-Dec-16 19:56
sunsher7-Dec-16 19:56 
AnswerRe: Call JavaScript function from c# code in cshtml Pin
F-ES Sitecore8-Dec-16 0:40
professionalF-ES Sitecore8-Dec-16 0:40 
GeneralRe: Call JavaScript function from c# code in cshtml Pin
sunsher8-Dec-16 10:47
sunsher8-Dec-16 10:47 
GeneralRe: Call JavaScript function from c# code in cshtml Pin
F-ES Sitecore8-Dec-16 22:29
professionalF-ES Sitecore8-Dec-16 22:29 
Questionnpm install is not installing and erroring continuosly Pin
indian1437-Dec-16 10:49
indian1437-Dec-16 10:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.