I was wondering what I should test and how I should test an IRepository.
At the moment I created a MemoryRepository in my domain and I am testing that with fake data. I am not sure if this is correct though. Feels a little weird to first create some data and then test to see if the repository returns it correctly.
This is what my Memo...
I'm from PHP background. I used to use Apache, MySQL and PHP for web development.
I'm just starting asp.net mvc.
I've Visual Studio 2008 Pro SP1 & .NET 3.5 SP1 already installed on my computer.
So, I installed ASP.NET MVC 1.0
Created a "ASP.NET MVC Web Application" project
when I hit F5 it gives error Unable to connect to the ASP.NET ...
Possible Duplicate:
SSL pages under ASP.NET MVC
I am thinking there might be something like [UseHttps] but I'm not sure, basically I have a few pages of the site that do a check-out and I want to use secure channel for posting credit card number... but JUST for those couple of Actions, any idea?
...
Hello, I've been working on an ASP.net MVC project that uses checkbox HTML Helpers in one of the views. The problem I'm trying to resolve is maintaining the checkbox state on a page refresh or when a user hits to he back button on their browser. I'm trying to use the HTML helper as a start, but I lack a complete understanding of how it...
I'm having the MVC Application in
/samples/Test.MVC/Simple/
When I create a virtual path to samples and convert
The virtual path '/samples/Test.MVC' maps to another application, which is not allowed.
...
I am using Visual Web Developer and Microsoft SQL server. I have a tag table "Entry_Tag" which is as follows:
entry_id
tag_id
I want to make the entry_id and tag_id pairing unique. A particular tag can only be applied to an entry once in the table. I made the two columns a primary key. They are also both foreign keys referencing the id...
I have a dropdown list on my master page that needs to postback after being changed. After the postback, whatever page initiated the postback needs to be re-displayed.
My question is where do I handle this? Obviously I do not want to have to modify every Action in my project... My guess is to maybe postback to some other fixed action an...
I'm running into an issue when I am saving the context of textarea using the wmd-editor it keeps wanting to save it as html. I have the following code:
The input elements...
<p>
<%= this.Html.TextArea("Body", topic.Body, new { @class = "big" })%>
</p>
The script to make the out put markdown...
<script type="text/javascript">
...
I have written an ASP.NET MVC application that allows the user to specify their own custom domain. I have IIS configured to send all requests to the default website so I do not need to use host headers. Everything works perfectly. The only problem is SSL.
I know this question has been asked multiple times in many forums but the answers ...
Hello Guys,
I have a problem with Crystal report, I wanted to show a dynamic image on my report. The images is generated via HTTP Handlers. Something like this: "Services/Print?ID=1143". The image doesn't show at all on my report view. But when I copy and paste the whole part and past it on my browser the handler just works fine. The im...
I have several class libraries within my MVC application which each have a Settings file with its own configuration file. With each configuration file being App.config, how are these aggregated into one configuration file? Should the settings be placed in web.config? Suggested best practice?
...
Should i consider ASP.NET MVC ViewModels only containing flat and primitypes types or it should contains complex Core/Domain model types ?
I'm looking for best practices.
Thanks.
...
I got an aspx page call ListArticles with the following code :
<% Html.RenderPartial("Create", new Models.Article()); %>
Create is a partial view (Create.ascx).
In my controller, I got something like this :
if (!ModelState.IsValid) {
return View();
}
So the problem is that the view generated by return View(); doesn't render...
I have a page that is made up of many user controls. The view model for this page is rather complex.
public class ComplexViewModel
{
public ObjectA ObjectAProperty { get; set; }
public List<Things> ListOfThings { get; set; }
public List<ThingCategories> ListOfThingCategories { get; set; }
public List<ThingTypes> ListOfT...
Hi
I have a table and trying to filter using uiTableFilter plugin as given at: http://silverwareconsulting.com/index.cfm/2008/10/2/jquery-autofiltering-table
Here is JQuery Function:
<script type="text/javascript">
$(document).ready(function() {
$table = $("#myTable").tablesorter({widthFixed: true, widgets: ['zebra']});
Filte...
Here is my dilemma. I have a collection of entities that I want to use to define as the starting point for a set of routes. For example, I want to give all of the users in my site their own "subsites" of the form mydomain.com/username, and then hang all of the UserController actions off of that.
Here is a rough example of what I am doi...
Hi Guys
I have view names like Folder-One/Page-One.aspx I want to do a base controller implimentation that all request go to one Base Controller, that returns the view based on the context. Obviously still keeping the .aspx in the path
I have folders like getting-started/application-faq.aspx but what I want to do is I want to create 1...
Is there a way to create a base controller implementation that handles all the routes?
IE /home/index and /about/index all point to one controller method and that returns the view.
The site I am building is 90% static content and I dont want to go and create 50 controllers.
One should be fine?
...
I have an action that returns a view with a master page with a logon user control at the top. When I set outputcache, it caches the entire output including the current user, so everybody would see whoever was the last person to hit the page to refresh the cache as the current user. Is there a way to prevent the master page from being i...
How can I get a user's geolocation information (City and Country - internet service provider and internet speed would also be great) based on their IP address?
I've searched and found several tools for doing this but I seem to run into problems using them with asp.net mvc. Many of them relate to using json and the "security risk" invol...