Linked Questions

337 votes
3 answers
190k views

I would like to have 2 separate Layouts in my application. Let's say one is for the Public section of the website and the other is for the Member side. For simplicity, let's say all the logic for each ...
Justin's user avatar
  • 10.9k
28 votes
6 answers
19k views

I'm reading and hearing some pain points and am wondering if I should even go that route. Not to mention, I cannot seem to find any definitive documentation (from Microsoft). If you say I shouldn't ...
jsteve81's user avatar
  • 735
19 votes
8 answers
44k views

I have the following WebGrid in my ASP.NET MVC3 test application. It displays a list of customers: @grid.GetHtml( tableStyle: "grid", headerStyle: "head", alternatingRowStyle: "alt", columns: grid....
Thomas's user avatar
  • 193
11 votes
10 answers
49k views

The code below will insert an actionlink into one of the web grids' columns. @{ View.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; var usersGrid = new WebGrid(source: ...
4imble's user avatar
  • 14.5k
10 votes
1 answer
21k views

In my webgrid I need to display images based on the value .. Code is given below @model TraktorumMVC.Models.ManagePhotos @{ ViewBag.Title = "ManagePhotos"; Layout = "~/Views/Shared/_Layout....
Null Pointer's user avatar
  • 9,319
6 votes
7 answers
20k views

Simple Q:How do you I get the textbox to show the value. Code below fail on item.LastName @model List<Mvc2010_11_12.Models.Employee> @{ var grid = new WebGrid(source: Model,defaultSort: "...
user408698's user avatar
11 votes
1 answer
4k views

new to mvc3, i have a few questions, would appreciate if someone could answer/provide links: When should I use View Models? Is it not recommended to use the domain? I find that my view models are ...
newbie_86's user avatar
  • 4,630
3 votes
4 answers
10k views

Is there some easy way to hide header for MVC3 WebGrid extension? Something like var grid = new WebGrid(Model, canSort:false, canPage:false, showHeader:false); I can probably set css style for ...
Antonin Jelinek's user avatar
5 votes
1 answer
10k views

How do I have nested WebGrid with lot of formatting for each column. I can do a nested for-loop, but I need it basically for paging. Or is there any other better option?
IsmailS's user avatar
  • 10.9k
3 votes
4 answers
16k views

I have two partial views “MyPopular” and “MyBlogs”. And there are two controllers – “ArticleController.cs” and “ThePopularController.cs”. Both these partialviews contains buttons. Initially it ...
LCJ's user avatar
  • 22.8k
1 vote
3 answers
6k views

I have a partial view called Login.ascx that has my login boxes that I include on a number of pages throughout my site. It works fine when the information is correct but I'm trying to do validation so ...
roflwaffle's user avatar
  • 30.8k
4 votes
1 answer
3k views

Is the MVC WebGrid Open Source? If so where can I find the source code. The current version of the WebGrid has little to no documentation, incomplete implemtation etc. I am trying to do a simple ...
Tawani's user avatar
  • 11.3k
1 vote
1 answer
3k views

I'm using MVC3 and I need a HTMLHelper with image, so I found a nice code, the problem is that the image is not shown instead of I see html code ex: <a href='whatever'><img src="images/...
Sebastián's user avatar
3 votes
1 answer
3k views

I need to do a grid using webgrid and I would like to hide the column (header and items) of edit actions based on user role. How can I do that with webgrid?
Cleyton T.'s user avatar
1 vote
2 answers
550 views

I'm new to working with MVC so please don't assume I know anything. I am picking up a project that has much already written in MVC and I am trying to add some things to it. On one View there is a ...
Jeff Martin's user avatar
  • 11.1k

15 30 50 per page