simplest way to post post data from mvc dialog to controller?
How can I send data from a dialog to the controller? Model Binding? Can I have example please? ...
How can I send data from a dialog to the controller? Model Binding? Can I have example please? ...
Hi all I'm writing a mini-MVC application. App architecture: actions/ templates/ site/ app/ styles/ images/ scripts/ So far, I've got a controller working properly, taking in all requests. However, javascript files are not being rendered properly in the browser; I'm getting a 404 Not Found when I try to load the ...
I'm utterly new to APS.NET and in particular the MVC model...! I have a Telerik RadGrid control that I'm using. Until now (following NerdDinner) I was having the Model passed back to the view and this provided access to the various properties I wanted. eg: Inherits="System.Web.Mvc.ViewPage<MySqlMvc.Helpers.PaginatedList<MySqlMvc.Model...
Hi, I am working on my first MVC application and am running into a bit of a problem. I have a data table that when a row is clicked, I want to return the detail from that row. I have a function set up as: function rowClick(item) { $("#detailInfo").data("width.dialog", 800); $.ajax({ type: "GET", contentType: ...
Why would POST work but not GET? I'm not using [AcceptVerbs(HttpVerbs.Post)]. I'm calling this: public ActionResult GetTest(string key) { var test = new { HelpTest = key }; return Json(test); } And it works when I do this: $.post("/Home/GetTest", { key: options.key }, ...
Hi Experts, Can I override an ActionResult method. Say I have a method Index in AccountController like this public ActionResult Index() { return View(); } Can I have one more method with same name but with differnt parameters like public ActionResult Index(int userid) { return View(); } I dont want to call it like http://something/...
Hello to all. I have a IQueryable function. In that function, I need to store and retrieve data to Session; can you guys point me in the right direction. I've looked at the HttpSessionStatBase where the session is usually taken from HttpContext.Current but this doesnt seem possible to do in the library. Am I missing something? Tha...
We have a solution with two projects, one of them is a Silverlight 3 application which is embedded on the other ASP.NET MVC project. Just recently an error started to appear which makes the build fail. Here is the output: `------ Build started: Project: DotCoquiMap, Configuration: Debug Any CPU ------ C:\Program Files\MSBuild\Microsoft...
In my model, I am apply Data Annotations that takes multiple values. I can get it to work at the class level but the values are not passed with I try this at the property level. My goal is to add the error at the property level, not form level. [PropertiesMustMatch("Password", "ConfirmPassword", ErrorMessage = "...")] public class Reg...
I am about to create a new web site and i do not know what is the best approach to do it use web form or MVC any hint? ...
Hi, I'm about to start an application which will have both console and GUI interfaces. What I wan't to achieve is COMPLETE decoupling of application logic from interface. In future, I may also add web interface, and I don't want to change anything in my application. Is there a good example (perhaps some open source project) where I can...
Hi, I am in a bit of a dilemma about how best to handle the following situation. I have a long registration process on a site, where there are around 10 form sections to fill in. Some of these forms relate specifically to the user and their own personal data, while most of them relate to the user's pets - my current set up handles user s...
Can I call javascript function from MVC controller action (not from view page) and get return value? How? ...
What do you think about putting Get-logic in the getters of a ViewModel? Something like: public class DummyViewModel { public int Id { get; set; } private DummyObject myObject; public DummyObject MyObject { get { if (MyObject == null) { DummyRepository repo = new ...
what is the purpose of "Areas" in MVC2 ...
Hi, I have been investigating how My ASP.NET MVC application can log unsuccessful / incomplete downloads. I have a controller handling the file requests which currently returns a FileResult. What I need to record is the IPAddress, filename and when the download started, then the same data and when it completed. I have looked at intercep...
Hello Is it bad habit to work with multiple models in one controller action? Should it always be like one controller-one model-one view? ...
can we use WCF in Asp.net MVC and how can we use? ...
What is difference between Asp.net MVC 1 and Asp.net MVC 2? ...
Hi I am following the tutorial to pass data to view master page using the "good solution" from this link http://www.asp.net/learn/mvc/tutorial-13-cs.aspx but after doing the changes as instructed, when i run the application. the application run the action result from homecontroller. Should i made change in homecontroller, i am missing so...