paging in MVC grid
Hello all, Please tell me how can I do Paging and Sorting in MVC grid,its urgent. Thanks Ritz ...
Hello all, Please tell me how can I do Paging and Sorting in MVC grid,its urgent. Thanks Ritz ...
I'm using ASP.NET-MVC and returning JSON or HTML from my MVC actions. I've come across some cases where I need to return BOTH JSON and HTML at the same time. For instance I may update a shopping cart and need to return an HTML representation as well as an updated JS object model. I've found a lot of questions on SO about when to return...
Hi everybody! I 'm developing an ASP MVC web project. Now i have a requirement which forces me to deploy to an IIS7 inmiddle of development (to check some features). I 'm getting the above mentioned error message whenever i try to type the URL of the web site. (Note: development machine: Vista Home Premium, IIS7) What i have done until...
hi am running batch insert with subsonic 3.0.0.3 and MVC and i have wrote the following example: var myquery1 = new Insert(provider).Into<orderitem>("orderitem_orderid", "orderitem_productid", "orderitem_qty", "orderitem_total", "orderitem_sessionid", "orderitem_internal", "orderitem_measurement").Values("1", "1", "1...
I'm working on an ASP.NET MVC application. I'm having a problem where my Application_Error() event in my Global.asax file isn't firing in Release Mode. If I compile in Debug it fires just fine. PS: I'm using NLogger to log my runtime errors. Any help is appreciated. Thanks. ...
Hey All, return new SelectList(new[] { "Please choose an option." }); In the preceding statement, how can I add a value=string.empty for the text value above? Thanks, rodchar The following is what works for me, however, is there a more consise way to write this? return new SelectList(new[] { "Please choose." } .Sele...
I have a form that's made up of many items (think order items on an amazon order). Each row has a checkbox associated with them so the user can select many items and click 'remove'. The form is built up a bit like this; <% for (int i = 0; i < Model.OrderItems.Count; i++) { %> <tr> <td><%= Html.Hidden(String.Format("OrderItems[{0}]...
In the application that I'm currently working on, it is possible for multiple users to want to edit something at the same time which means that we need to implement optimistic locking. However, for this application, the item being edited is a scientific protocol that contains records from multiple different tables in the database. As s...
Hi, i'm done quite lot searching, but just to be sure, is there any modern ASP.NET eCommerce solution? Almoust all solutions i've found are ASP.NET 2.0 based, use no ORM, have no clear separation of layers. And i've searched mostly for commercial packages, hoping that commercial products will offer more, that open source ones? I mean the...
I have a user database, to which I have access trough a web service. One of the web service method is something like this: public void login(string name, string password, out user_key) and in my controller I want to do something like this: String key = repo.login(username, password); // a wraper on the login method if(key ....) F...
Hi, I know this has been an issue for others, but I've yet to find anything that fixes my problem. I have a partial view that is displayed in a lightbox (colorbox). It is a simple form. I want the form to submit and return a little bit of data. The data will be used in calling subsequent functions, and I want the main DIV just to be...
Is there an easy way to specify all "normal" views is an ASP.NET MVC app are to have charset=utf-8 appended to the Content-Type? View() lacks an override that allows you to specify the Content-Type, and ActionResult and friends don't seem to expose anything, either. The motivation is obviously to work around Internet Explorer guessing ...
I need a DataAnnotationsModelBinder that is going to work with System.ComponentModel.DataAnnotations v 3.5 i have found one on codeplex, but is for the v 0.99 of DataAnnotations and it doesn't work with v 3.5, and my xVal doesn't work with DataAnnotations v 0.99, so i'm kinda stuck ...
since the Sitemap of VS2008 does not work with MVC, I found MVC Sitemap by maartenba on codeplex. But how do I install and use this.. The download is a sample, and below it is a Dll. I'm sure the install is ridiculously simple, and also overlooked. So I'm looking here to see if I can get assistance using this package in my VB website. ...
So I have a structure like this: Widget: Component 1: Component 2: Component 3: ... Component n: I'm building an ASP.NET MVC web app that as part of its functionality will allow a user to create a Widget object and assign Component objects (which have a number of properties) as "children" of the Widget object. Users might ha...
I am developing an ASP.NET MVC application on which I provide the end users with a particular form asking for pretty standard stuff, name, phone number, address, etc. However, some of the users will need to ask me for additional pieces of input, for which I have no way to plan. In addition, some of these forms may have slightly differe...
I have a WebPage Controller that handles all my public side of things on the website. I have an Enquiry table to insert details of information typed in a contact form. On the contact page it posts to the WebPage Controller with the contact form information. How do I check that the form collection validates against the expected Enq...
Hello Everyone, I search and read all the questions i could find here and in google, and I can't seem to find the answer! The Rout in questions is this: routes.MapRoute("Admin - Change Password", "Admin/ResetPassword/{UserId}", New With {.controller = "Admin", .action = "ResetPassword", .UserId = ""}) The Url It Generates is: /Admin...
Does anyone know a good plugable ASP.NET MVC compatible forum solution? I don't want to re-invent wheel to have good forums in my application. ...
I am trying to implement a tree view in my application. I am using MVC2 Preview 1, and SubSonic 3 SimpleRepository. I am new to both MVC and Linq. My problem is that I am not sure how to add a list of child nodes to the model record that I am passing back to the View. So I have added a IEnumerable called Children to my model class that ...