Solved

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

Posted on 2012-04-12
6
277 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
  • 3
  • 3
6 Comments
 
LVL 14

Accepted Solution

by:
binaryevo earned 150 total points
Comment Utility
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 14

Expert Comment

by:binaryevo
Comment Utility
0
 
LVL 2

Author Comment

by:brgdotnet
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 14

Expert Comment

by:binaryevo
Comment Utility
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
Comment Utility
Thank you for your help.
0
 
LVL 2

Author Comment

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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now