1
vote
2answers
34 views

Data not showing in the strongly typed view

I have an issue with my controller. Data from my table is not showing in my strongly typed view. but when I return View(CanaClie0012.toList()); I can see my data perfectly. Im not getting any error. ...
2
votes
3answers
55 views

Get Multiple Selected checkboxes in MVC

i have a ProductController which is consists of Create method. My Model : public class ProductEntry { public Crescent.LinqModel.Product Products { get; set; } public ProductSKU SKUs { get; ...
0
votes
2answers
19 views

asp.net mvc display image external to the mvc deployment

I want to deploy my ASP.NET MVC site to some location C:\home\MySite\, and I want to give it a config value to point to a different location on that server: C:\home\SomeOtherLocation\Albums, and ...
-7
votes
0answers
42 views

MVC notes - client side and server side [closed]

I have been using server side ASP.NET MVC and Web API, and client side MVC library like backbone.js for a while. MVC pattern sounds easy and straightforward, but it might be confusing when it comes to ...
0
votes
2answers
78 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 : ...
0
votes
1answer
48 views
+50

Import Ms Access Data by programmming

I am in search of an good approach to import data from ms access and bind it to any Model of an MVC pattern Here is the approach which we are thinking to following Approach 1 : Open Ms Access ...
1
vote
2answers
40 views

A public action method '..' was not found on controller '..'

I wanted to put a random image on every viewpage of my mvc project. So i created a method that returns a partialView and call that method in the shared Layout page. This works fine when I try to ...
0
votes
1answer
35 views

How to add one item to different tables?

How can I add the same object same "truck" to another table? [HttpPost] public ActionResult TruckAdd(TruckList truck) { truck.DateAdded = DateTime.Now; db.truckList.Add(truck); ...
0
votes
1answer
25 views

How do I pass a link through ViewData in MVC 4?

still pretty new to MVC and its logic I have a controller that has something that looks like if (test1 != test2) { ViewData["Return"] = "<a href =\ "http://alpha.pm.com" ...
1
vote
1answer
39 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) ...
0
votes
1answer
27 views

Bind Model in javascipt function and pass it to Controller

I am opening a aspx page "Test.aspx" from a mvc view using Window.showModelDialog(),and this page is returning some value in a javascript function(window.returnValue) on that MVC view,Now i have to ...
1
vote
3answers
39 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: ...
0
votes
1answer
24 views

Format datetime in where condition in EasyQuery

Mine is a MVC application having easyquery widget. I need to format datetime columns in where condition like '2013-05-06 12:20:35'. But when I tried dbQuery.Formats.DateTimeFormat = "'yyyy-MM-dd ...
0
votes
2answers
65 views

JSON date serialization issue in ASP.NET MVC 4

In a MVC4 application, I'm passing my view model to the controller action method AsyncUpdateOrderLine: function updateQuantity(sender) { ... var model = @Html.OrderToJson(Model) ...
0
votes
0answers
15 views

Concatenate in EasyQuery in MVC

Concatenate in EasyQuery in MVC How to add concatenation in select in easyquery ? For varchar fileds, I could only see count function.

1 2 3 4 5 111
15 30 50 per page