?
Solved

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

Posted on 2012-04-12
6
Medium Priority
?
286 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 600 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
Independent Software Vendors: 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!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

765 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