I am having a very strange issue with my route in my global.asax.cs page.
In the mapRoute below, if I use action = "Grid", everything works. I can use either url below to navigate to the correct controller. If I use action="Angular", both urls below go to the Angular Controller. I have no idea why this is, but it took me a very long time to find.
Comment out original one.
Create two views (Grid and Angular) inside
~\Views\Template\
path.
It is working for me.
Mrunal
simple way of creating view is:
inside Template controller, just right click on
View("Grid")
and select add view. It will take view name also automatically.
Same thing for Angular view also and RUN application.
jackjohnson44
ASKER
Hi, thanks. The compile error was because I choppped the last line. It should have included a ");". My code looks right and should work, but something is causing the issue I talked about above. Any ideas how to diagnose this?
On the code part it is pretty thesame of what you have sent us, only I don't have any issues.
Which version of MVC are you using and which Visual studio version?
Currently only thing that I can think of is that there is something interferring with the code you have besides the code you posted.
Code you have given has build error.
Update with this:
Open in new window
Comment out original one.
Create two views (Grid and Angular) inside
~\Views\Template\
path.
It is working for me.