Solved

How to test MVC applications, if can't view in browser.

Posted on 2012-04-12
6
284 Views
Last Modified: 2012-04-12
Dear Asp.net experts. I am learning MVC on my own in my spare time. I have past Asp.net experience and enjoy the old way of being able to test the look and feel of the website in my web browser. (I am a visual person).
In working with MVC, I am not able to do a "View in browser" or run my application on localhost, like I have with Asp.net in the past.

Is their something I don't know? If I can't test my website look and feel in localhost, on my machine, then that is very frustrating. Kind of like a bad April fools joke, not being able to visually look at your changes.

This could especially be a challenge if I need to test CSS changes to my website. Anyway, I would appreciate help from professional Asp.net developers. Thank you in advance.
0
Comment
Question by:brgdotnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 14

Accepted Solution

by:
binaryevo earned 150 total points
ID: 37837988
Oh but you can my friend... You can run the site in the debugger just like you can in web forms.  Exactly what kind of error are you getting or whats happening?
0
 
LVL 2

Author Comment

by:brgdotnet
ID: 37838479
Hi BinaryVevo. I did not get an error. The page just did not display in the web browser. It looks like the other fellow pointed me to a nice post by Author Stephen Walther. If you have anything else to share with me please do so. Otherwise I will give the points away based on the Walther Article.
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 14

Expert Comment

by:binaryevo
ID: 37838545
You probably need to look for the correct route.  Look in your global.asax file ( FYI, the other fellow is still me... :=)  ), this will tell you your default routes.  Routing is how MVC "gets" to the page.  So for instance, in webforms, you would look for the location of a page like this:  ~/Forms/MyPage.aspx.  Well in MVC its different, the routing engine typically looks for views using the following default routing scheme:  controller/action/parameters.  Using the same example, for the same view ( MVC version of course ), /MyPage/Load.  See this link about routing below:

http://www.asp.net/mvc/tutorials/older-versions/controllers-and-routing/asp-net-mvc-routing-overview-cs
0
 
LVL 2

Author Closing Comment

by:brgdotnet
ID: 37838651
Thank you for your help.
0
 
LVL 2

Author Comment

by:brgdotnet
ID: 37838655
Thank you so much. I gave you the points. Have a great day.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question