Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. MVC 5 Scaffolded view problem

MVC 5 Scaffolded view problem

Scheduled Pinned Locked Moved ASP.NET
questionhelpcsharpasp-netvisual-studio
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AnCristina
    wrote on last edited by
    #1

    Hello ! I want to create a MVC 5 application using Visual Studio 2013 . I have the following problem : I created a controller to display data from a table and then created a view using Add View for the

    return View();

    method . The view is created , but when I try to go to the view from the controller , the "Unable to find a matching view" error is shown . How can I link the view to the controller ? Sorry if this question was asked before .

    A R 2 Replies Last reply
    0
    • A AnCristina

      Hello ! I want to create a MVC 5 application using Visual Studio 2013 . I have the following problem : I created a controller to display data from a table and then created a view using Add View for the

      return View();

      method . The view is created , but when I try to go to the view from the controller , the "Unable to find a matching view" error is shown . How can I link the view to the controller ? Sorry if this question was asked before .

      A Offline
      A Offline
      AnCristina
      wrote on last edited by
      #2

      Problem solved , apparently my view wasn't named properly .

      1 Reply Last reply
      0
      • A AnCristina

        Hello ! I want to create a MVC 5 application using Visual Studio 2013 . I have the following problem : I created a controller to display data from a table and then created a view using Add View for the

        return View();

        method . The view is created , but when I try to go to the view from the controller , the "Unable to find a matching view" error is shown . How can I link the view to the controller ? Sorry if this question was asked before .

        R Offline
        R Offline
        Raviranjan_Kumar_Sinha
        wrote on last edited by
        #3

        Hi, Your View Name is same as controller Method Name and also in correct folder as per Controller Name ? Thanks Raviranjan

        A 1 Reply Last reply
        0
        • R Raviranjan_Kumar_Sinha

          Hi, Your View Name is same as controller Method Name and also in correct folder as per Controller Name ? Thanks Raviranjan

          A Offline
          A Offline
          AnCristina
          wrote on last edited by
          #4

          I created the view , but renamed it , so the controller didn't recognize it . Thanks !

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups