Hi All,
I am definitely missing some understanding of the automatic model binding of a view.
The issue:
I have a view model that has properties as follows:
public class ItemViewModel
{
public TextBoxControlData FundName { get; set; }
public List<DateControlData> Dates { get; set; }
}
where TextBoxControlData and DateControl...
Hi,
We are currently finishing an architecture plan for a new software application we are developing next year in ASP.NET MVC / C#.
We are planning to construct the application following Domain-Driven design patterns and techniques and i'm wondering if anyone has any advice / views on an aspect of the proposed system.
One of the busin...
Hi there,
can anyone help?
I have just started asp.net mvc and its all working.. entering my controller and then sending out the view... I am also writing a log here....
The page that loads as quite a bit jquery and javascript so i need to be able to enter into the controller again preferably not a postback but via ajax or similar - ...
I am working on my first asp MVC project that will ultimately end up on a publicly accessible web server (I have worked on some internal apps in MVC). What techniques, practices should I be thinking about (specific to MVC or otherwise) to improve security.
Off the top of my head obviously there is the AcceptVerb attribute for actions an...
Hi,
I've got a question regarding ASP.Net MVC.
I'm using an Ajax.ActionLink to load a PartialView.
In this partial view is a javascript function I'd like to get called.
However I can't figure out how to make this happen.
I've tried using AjaxOptions { OnSuccess="functionInPartialView" } when I set the Ajax.ActionLink but for some ...
I have the following macro:
<macro name="InputField" id="string" value="string">
...
<input type="text" id="${id}" name="${id}" value="${value} />
...
</macro>
And the call to the macro:
${InputField( "model.address.address1", 75, "Address", model.Address.Address1 )}
The only problem is that model.Address will be null in som...
Hi there,
I wonder if anyone can help, i wish to save a variable globally for the current user on the current page, i thought Sessions are bad in mvc??
I should give an example of what i am doing. Basically i have a controller and it enters (Action = Index) and i check
Request.UrlReferrer
And if it contains a value that means it arr...
I have an application that's been provided by a third party. The only means of modifying the behavior is through client side script. I have a screen in the app that does some ad-hoc querying but doesn't provide any means by which to save the settings. Rather than have the user re-enter setting each time, I've injected some elements vi...
I'm running asp.net MVC site on IIS6 - I've edited my routing to look like the following:
routes.MapRoute(
"Default",
"{controller}.aspx/{action}/{id}",
new { controller = "Home", action = "Index", id = "" }
);
routes.MapRoute(
"Root",
...
I have been searching some .css layouts for asp.net mvc model.
I like the suggested view, but I want to give a new look to my application just applying a new color scheme.
Someone find some nice schema?
thanks.
...
I am using a jQuery Ajax control from this site http://abeautifulsite.net/2008/03/jquery-file-tree/
I have it all working. I tried to ask a support question but never heard back, thinking maybe someone on here can shed some light on the situation.
Basically what I am trying to do, is on a file selection run an action that returns a Jso...
I've got two questions about Asp.Net MVC areas. I have only a shallow understanding of areas from what I've heard about them in various podcasts but I think I understand fairly well what they're supposed to be used for. Now my question is if I could also use them to enable me to gradually switch from development in Asp.Net webforms with ...
Hello Everyone,
I am working with a model that needs to flow through a series of controllers and views manipulating it along the way(Only loading it on the first controller). Is there a way to persist the model from the view back down to a controller and so forth?
Here is my code.
Model:
public class ROWModel
{
#region Proper...
We have a massive client facing web application here. We recently re-wrote the buy online experiance to make it quicker. My suggestion of using ASP.Net-MVC was not taken on board as I'm kinda the only one here that knows about it.
Now we are about to embark on redeveloping another section of the site and again I can't use MVC because ...
If I receive a generic error in my ASP.NET MVC 2.0 Beta app and catch it. I notice that the next time I post that the model returned to my post is always null. Do I need to clear out the ModelState error or something?
...
I am unsure if my title was accurate enough. I am trying to make SEO URLs for my website which is developed in ASP.NET MVC. I configured my route to include:
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}/{seo}", ...
I have a few tables that reference the same table. For example:
Person has an address.
Business has an address.
When using the models I would like to do this in the controller:
person.Address.Zip
business.Address.Zip
I'm coming from a rails background where I can just declare a relationship and have all the above functionality. Forc...
I have an architectural question. We have many applications in our company and we are planning to use ASP.NET MVC and Entity Framework in our future projects. The next project that we need to implement is a central authorization/authentication system. There is no option to use an existing one for reasons that doesn't mater right now. Thi...
I have developed a restful API using ASP.NET MVC and have documented my controller actions using standard commenting. I would now like to generate API documentation to hand off to the people who will be consuming this API.
What are my options in terms of tools for generating documentation against the restful API that I've created.
...