I'm stuck !!!
Kindly help me out.
I have following view model property in my mvc 2.0 project...
public IDictionary<int, IList<int>> SelectedErrorsErrorType { get; set; }
Basically I have group of checkboxes under one or more tabs. These tabs are like English, German, French etc. etc.. I want to use tabId as dictionary Key and selec...
I've been working on creating my own IoC container for learning purposes. After asking a couple questions about them, I was shown that creating a factory to "resolve" the objects was the best solution (see third solution here). User Krzysztof Koźmic showed that Castle Windsor actually can implement this for you.
I've been reading the so...
1) i have 2 tabs Categories and SubCategories on db with relation 1 to many (im using entity framework)
2) i have to create a vertical menu like this
<ul>
<li>category 1
<ul>
<li>subcategory 1</li>
<li>subcategory 2</li>
<li>subcategory 3</li>
</ul>
</li>
</ul>
i think that my problem is here ...
I'd like to correctly support the HTTP HEAD request when bots hit my ASP.NET MVC site using HEAD. It was brought to my attention that all HTTP HEAD requests to the site were returning 404s, particularly from http://downforeveryoneorjustme.com. Which is really annoying. Wish they would switch to GET like all the other good bots out there....
Hello, I do use T4MVC v.2.6.15
I have following problem with registering routes. I didn't have it with default MVC route register.
My problem route is following:
AddRoute( routes, "Songs",
//new { controller = "Songs", action = "List", performerUrlTitle = "", page = 1 } );
MVC.Songs.List( "", 1 )
// M...
i have an asp.net mvc page where i show a dataset in a report. I have a filter section at the top and each filter changes the dataset from:
Controller/Action
to something like this:
Controller/Action/Field1Filter
If there is no filter selected, i put a zero in this part of the url. I keep adding more fields to filter by and now ...
Hi,
has someone put together a decent discussion board/forums based on ASP.NET MVC or MVC2?
A simple solution would be good enough.
Preferable something which integrates into an existing site.
Any hints?
...
I have the following mapping:
<!-- WidgetConfiguration -->
<class name="MyProject.WidgetConfiguration, MyProject" table="WidgetConfigurations">
<id name="Id" column="Id" type="Int64">
<generator class="native" />
</id>
<property name="Name" column="ConfigurationName" />
<map name="Widgets" table="WidgetConfigurationPositio...
Hi
I am looking at my performance in yslow and even though I gzipped my css and js scripts it says I should gzip my html page.
Compression reduces response times by
reducing the size of the HTTP
response. Gzip is the most popular and
effective compression method currently
available and generally reduces the
response size b...
I'm building an ASP.NET MVC site where I want to decorate my ViewModels with validation attributes. One of the things I want to validate is that the address that a user submits through a form is geocodable. For that, I have already created a custom ValidationAttribute and have applied to my StreetAddress property.
This is all good, exce...
i am using pdfsharp in a asp.net mvc application. i want to add an image but no matter what directory i put it in, it can't seem to find it. I have code like this as i am trying to copy the sample application
Section section = document.AddSection();
Image image13 = section.AddImage("../../images/logo.png");
no matter what director...
Hi
I am using
asp.net mvc 2.0
C#
.NET 4.0
ms sql server 2005
iis 7.0
I want to make an email notifier system just like many sites have such as google. I want user to be able to set a reminder date and when that date is hit a email is sent to them.
I am not sure how to do this.
I heard of a couple ways but have not found any tutor...
I am creating an application using asp.net MVC. By default, the model, view and controller are all in the same project, but
can I create different projects or class library projects for the model, view and controller, so I could manage them separately? Is it recommended?
...
I'm building an ASP.NET MVC web application that supports plugins in the form of bundled .dll files that can contain (among other things) precompiled (through aspnet_compiler.exe) .aspx view pages as well as Controller objects handling requests.
I've built the plugin system so that all plugins are contained within a separate AppDomain t...
Hi,
I'm creating a few custom binders for complex types in my Model. My model is composed of objects that have their own separate binders. I want the base object to do its dirty work and then populate the complex object it encapsulates by passing off to the standard ModelBinder routing. How do I do this?
For illustration purposes I'...
I am creating an application for a video gallery, where I have different types of cds like audio, video, songs, movies etc. I need to give users access to only some of the cds types, for example only songs and movies.
How can i achieve this in ASP.NET MVC?
...
hi,
i am using MvcSitemapProvider and is working fine, but
its returning all results in Https instead of Http.
i am unable to find a way to return the results in http (sitemap for search engine)
<mvcSiteMapNode title="Details" controller="Home" action="News" dynamicNodeProvider="DynamicPostDetailsProvider, MyNamespace" updatePriority=...
I've built a backend in ASP.NET MVC2 which has an underlying ADO.NET Entity-based Database.
In the MVC Backend, I call my database entities, i.e.:
Entities entities = new Entities();
...and that all works fine.
Unforutnetly, in my Azure/mvc2 project, My worker role makes the azure project throw weird exceptions:
"The specified name...
Hey everyone,
I'm writing some unit tests for some controller methods in my project and am wondering whether to test against the controller class itself or an interface of that controller.
Should I be creating an interface for each controller and run my unit tests against that?
...
Hi there.
I noticed this in earlier versions of Visual Studio. But now i use VS 2010 and it is still there, so i want to ask if this is supposed to be so, or if its just not fixed yet.
Using the <%= %> tags inside 'real' html tags works and is in most cases the way i use them.
But the intellisense and code highlightning does not work an...