0
votes
2answers
37 views

When to use RedirectToAction and where to use RedirectToRouteResult?

Question In which context, I can use RedirectToAction and where to use RedirectToRouteResult ? I have two Action Methods like below. Approach - 1 public class ActionResultTypesController : ...
1
vote
1answer
36 views

MVC - GET & POST actions with the same name and parameters in the same controller

I'm working on an MVC4 project, and I have two actions in the same controller with the same name and parameters: public ActionResult Create(CreateBananaViewModel model) { if (model == null) ...
1
vote
3answers
37 views

ASP.NET MVC 3 List<T> to IEnumerable<SelectListItem>

I'm not currently happy with the way that my DropDownListFor() objects are populated. I'm attempting to find as generic way of populating IEnumerable as possible. This is what I have so far. Helper: ...
1
vote
1answer
25 views

Getting Disabled Dropdown values in MVC

I am pretty new to MVC. In my form i have a disabled dropdown control whose value is not getting passed to the Model during submit as it is disabled. I tried using a hidden field like below ...
-1
votes
1answer
18 views

aspx to mvc microsoft visual studio 2012

i dont know how to change this code to MVC , can someone help me to do it or explain me how can i do it, It's about modify edit and delete a component of a database i need to understand it and do ...
1
vote
2answers
41 views

How can send List<> Model From View To Controller using Ajax Jquery in Mvc3 asp.net?

How Can I Send List<int> Roles Model? For example from view To Controller. Using Ajax Jquery in Mvc3 asp.net not razor. I'm using this code var url = '<%:Url.Action("Roles","RolesManager") ...
0
votes
1answer
47 views

Show admin panel button only if user is logged in and is in admin role

Basicly my questions is based on this question here: Show menu item only for logged-on users The way they solved it in previouse question is a hacky way. I read a little about this problem, and ...
3
votes
2answers
34 views

How to call another controller Action From a controller in Mvc

I need to call a controller B action FileUploadMsgView from Controller A and need to pass a parameter for it. Code---its not going to the controller B's FileUploadMsgView(). In ControllerA ...
1
vote
1answer
34 views

How to open a popup, MVC webgrid, dynamic columns

I have a webgrid, which is stated below @grid.GetHtml(tableStyle: "webgrid", headerStyle: "webgrid-header", footerStyle: "webgrid-footer", ...
0
votes
0answers
73 views

Mixing javascript and C#

I have @model IEnumerable<HotelWithRating> - some hotels. At the view I have 5 checkboxes - stars of the hotel. <table> <tr> <td>1</td> ...
1
vote
1answer
25 views

Publish MVC 3 app in Windows 8 PC and publish on Live server via Fillezilla [closed]

I have created a C# MVC 3 app in Windows 8 PC.The problem is that i want to make it live. The problem is my host provider has given me on FTP access (Filezilla). How do i update. Thanks in advance
1
vote
0answers
32 views

MVC file saving and uploading with same button

I have a Upload and Save forms that works but I would like to pass uploaded image and save other data for movies in one button (to merge Save and Upload) Here is my cshtml Create view: ...
2
votes
0answers
75 views

Using Asp.Net C# MVC4 and Json, how can I get my chart to update in line with my paged datatable

I am using datatables and charts. I would prefer to return standard data through the model but cant for some odd reason, and the controls only seem to work with Json. Perhaps it's just my ...
0
votes
2answers
38 views

How To send a GenericList Items To Controller

I Have a Modle like: public class Invoice { int Code{get;set;} List<InvoiceItem> InvoiceItems{get;set;} } I fill InvoiceItems in a Table and I want Get Table Item as InvoiceItems in ...
0
votes
0answers
23 views

mvc content route fall through

I need a routing strategy for a primarily content driven site. We don't want to use .aspx or .html as file extensions, but have a controller ("ContentController") perform the work of taking the html ...

1 2 3 4 5 59
15 30 50 per page