Solved

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

Posted on 2012-04-12
6
281 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
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 14

Expert Comment

by:binaryevo
ID: 37837994
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
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.

 
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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