none
ASP.NET Browser öffnen unter Visual Studio RRS feed

  • Frage

  • Hallo zusammen,

    using System.Web.Mvc;
    
    
    namespace MvcApplication.Controllers
    {
        public class HomeController : Controller
        {
    
            public ActionResult Index()
            {
    
                ViewBag.Message = "Welcome to ASP.NET MCV";
    
                return View();
            }
    
            public ActionResult About()
            {
                return View();
            }
    
        }
    }

    kann mir ja jemand bitte weiterhelfen, wie man den Code ausführt und sich ein Browser öffnet mit "Welcome to ASP.NET MCV!". 

    Bei Control + F5 frägt er mich nach einem Einstiegspunkt, logisch, da keine Main Methode vorhanden. Mit Output: Windows Application, das gleiche Ergebnis.

    Ich habe es versucht mit "WebApplication1ASP.sln" das gleiche Ergebnis wie oben beschrieben.

    Das ist ein Übung. Danke.

    Grüße Midatra

    Montag, 17. Februar 2020 17:21

Antworten

Alle Antworten