asp.net-mvc

Jquery Uploadify checkscript

I am trying to implement the checkscript feature of uploadify in an asp.net mvc view but i can't determine what the key is i should be using on the controller side. Below is the php script but i am not very familiar with php and can't determine what php is scraping out of the httprequest. Has anyone implemented this? The documentation is...

Display Database Image in a Popup Dialog

Hi all, I currently have a view which contains a table looks something like this: <table> <tr> <th>Id</th> <th>Name</th> ..... <tr> <td>11233455</td> <td>Alex P Keaton</td> </tr> <tr> <td>1123455</td> <td>Jim Halpert</td> </tr> ..... </table> What I would li...

Jquery UI Dialog Post to ASP.Net MVC Controller Action

I have an MVC view that contains a JQuery UI dialog that can be opened and populated with data. <div id="dialog"> .... Table of phone numbers </div> <div id="personData"> ... Person model data </div> I am attempting to pass the data from the JQuery UI dialog along with the rest of the MVC View data to a controller action. public A...

MVC - is it just a 3 tier model?

Just began researching mvc, and am not sure I grasp it yet. From what I gather it seems like an implementation of a 3 tier solution ie Model corresponds to DAL, Controller to business logic layer, and View as Presentation layer. Am I way off base here? ...

Choosing data access methods in ASP.NET MVC

As I am a beginner to ASP.NET MVC, I would like to know what are the best data access methods for ASP.NET MVC? ...

Should I start on ASP.NET MVC 1 or MVC 2 Beta?

I'm just starting to get into ASP.NET MVC, and saw today that the Beta of version 2 has been released. Should I start on MVC 1 given that there are already a lot of great resources and tutorials? Or should I go straight to MVC 2 to take advantage of whatever improvements have been made? I'm thinking about breaking this into another qu...

Url.Action and routeValues inheritance

Suppose I have the following route. routes.MapRoute("SomeRouteName" , "{node}/{action}/{destination}" , new { Controller = "Document"} , new { Action = "Transfer|Destine|Remove" } ); When "/X/Destine/Y" URL is entered, the "Destine" action fires and renders a view, which contains the following: <%= Url.Action("Transfer") ...

MVC : Separate admin controllers

I was wandering if there is option to do the following If I call "admin/Category" - to call "CategoryAdminController" If I call "Category" - to call "CategoryController" It is very easy to do this via routing and custom controller factory. Here is the solution: // add route routes.Add(new Route("{culture}/admin/{controller}/{action}...

ASP.Net MVC Routing issue with Html.BeginForm

Using MVC, I have an html form helper in my view: using (Html.BeginForm("ActionOne", "ControllerOne")) ... Using the default route, the output for the action attribute is as expected: <form action="/ControllerOne/ActionOne" ... But registrering a new route with seemingly no matches affects the output. Routing code: public static ...

ASP.NET MVC: Problem with OutputCache

Hi, for my current project it's necessary to generate dynamic CSS... So, i have a partial view which serves as a CSS deliverer... The controller code looks like this: [OutputCache(CacheProfile = "DetailsCSS")] public ActionResult DetailsCSS(string version, string id) { // Do something with the version and id here.....

Syntax query please help me?????

Hello All, Please can anyone tell me all the properties or methods which I can use while using the following method of HTML syntax <%= Html.TextBox("email", "", new { maxlength = 200 })%> <%= Html.ValidationMessage("email", "*")%> i want the link where i can get the complete synatx of the above . please help me Thank...

Architecture for extension/plugin communication

Once the problem of loading plugins is solved (in .NET through MEF in out case), the next step to solve is the communication with them. The simple way is to implement an interface and use the plugin implementation, but sometimes the plugin just needs to extend the way the application works and there may be a lot of extension points. My ...

ASP.NET MVC ControllerBase.Json() fails to generate valid JSON for NHibernate collections

I'm using return Json(whatever); inside an ASP.NET MVC Action to return data to my page via JSON. I'm using jQuery to perform the JSON request and subsequent interaction with DOM. when whatever contains NHibernate objects with collection members (i.e. contains ISet objects), the callback function is never invoked by jQuery. We're using...

ActionResult helper and different types resolver

Idea is to use same action methods for different types of results I.E. /category/details/?resultFormat=json /category/details/?resultFormat=xml So to have some kind of ActionResult helper that contains registered pairs of value resolvers "json", JsonValueResolver "xml", XmlResolver etc...is there already solution fo...

Do Input Builder attributes in MVC Contrib support localization?

With Data Annotations for example, besides decorating members like this: [Required( ErrorMessage = "You must enter your first name." )] public int FirstName { get; set; } I can also do it like this to accommodate multiple cultures: [Required( ErrorMessageResourceType = typeof(Resources.Customer), ErrorMessageResourceName ...

Unable to generate a custom path in ASP.NET MVC Master Pages.

I am working in an ASP.NET MasterPage and am having trouble with <link href="..." />. I am trying to substitute in a stylesheet with a specific name: <link href="/Content/Styles/<%=Model.Style%>.css" rel="stylesheet" type="text/css" /> Unfortunately, this creates the HTML output: <link href="/Content/Styles/&lt;%=Model.Style%>.css" ...

checking duplication of the title of an entity

I have a project in Asp net mvc. An entity called product can not have similar titles. As I am following repository pattern where is the best place to check the duplication? I can do it in controller but it will lead to a fat controller. ...

MVC Ajax - Parsing Form Submission Return Data

I am using MVC Ajax to do a form submission. What I can't get right is to get the Action on the server to return a partial view to the browser. The form submission looks like this: <% using (Ajax.BeginForm("Add", "Example", new AjaxOptions { HttpMethod = FormMethod.Post.ToString(), OnComplete = "widgetAdded" } )) { %> This hits the ...

Display different forms on Index page depending upon link clicked in ASP.NET MVC

I have a menu control on Index page rendered as <% Html.RenderPartial("MenuUserControl"); %> where MenuUserControl is something like <li><%= Html.ActionLink("Link1","Index") %></li> <li><%= Html.ActionLink("Link2", "Index")%></li> <li><%= Html.ActionLink("Link3", "Index")%></li> Now I wan to load three different form in Index p...

Path 'PROPFIND' is forbidden?

I am receiving the following error but can't seem to make sense out of it within the context that it's happening: Message Path 'PROPFIND' is forbidden. StackTrace at System.Web.HttpMethodNotAllowedHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep....