0
votes
2answers
35 views

Getting data for Partial View MVC 3

I have a partial view in MVC 3 .NET. Every time I render the partial view, I get an error saying the Model is null. I would like for the partial view to get the data itself without passing data to ...
0
votes
2answers
40 views

passing span or label to Controller in ASP.NET MVC 3

I have this script: $(this).before('<span type="text" id="id" name="name" class="tag">' + txt + '</span>'); But it doesn't appear in FormCollection, after I submit the form. I assume ...
2
votes
1answer
249 views

MVC 3 with ajax submit complex object to controller

I am using just mvc 3 with c# and ajax javascript and I have a view with a strongly typed model bound to it. <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" ...
0
votes
2answers
49 views

View values not returned to the controller action

Can anyone tell whats wrong with my view? my model values is displayed correctly in my view but it is not returned to the controller action. public ActionResult DeleteConfirmed(ClientModel contacts) ...
0
votes
1answer
71 views

Change the view's path on the fly

I have this class: public abstract class MyController : Controller { protected override void OnActionExecuting(ActionExecutingContext filterContext) { string viewPath = filterContext/*... ...
1
vote
2answers
96 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. ...
0
votes
1answer
65 views

Kendo UI or MVC JSON viewer, or Formatter to display JSON string

Is there a control or any other way to format a JSON string, that is to give different colours/ arrange/ indentations etc... Please reply me if anyone have an idea about it. Thank you
0
votes
0answers
220 views

DropDown list issue in knockout js asp.net mvc 3

I have the following problem. I'm developing web application on asp.net mvc and using KnockoutJS in one of views. I have the following viewmodel public class ExampleViewModel { public ...
0
votes
0answers
35 views

Request going directly to view instead of controller when they have the same name

I'm experiencing a weird behavoir when I try to make a view for an MaximumRequestLengthExceeded error page. It seems like when the Controller Action is named the same as the View the request goes ...
0
votes
1answer
104 views

Detect Mobile Device with JavaScript and Razor

I was looking for an easy and lightweight solution to detect Mobile Devices and render the appropiate view. Unfortunately I am not having much success with my approach. <!-- MOBILE DETECTION ...
0
votes
1answer
37 views

Error Message in Strongly Typed View - What is the “dictionary”?

Here is a sample of an error message when the wrong type is passed into a strongly typed view: The model item passed into the dictionary is of type 'foo', but this dictionary requires a model item of ...
0
votes
2answers
281 views

Render StringBuilder HTML in MVC 3 View

In my view I am looping through my model and building html to display on the page. I am building this html with stringbuilder and if/else conditions. I have tried to render this string as html but I ...
0
votes
1answer
91 views

Can i use RouteLink to change the parameter of the route depending on link clicked, MVC3

In Global.asax.cs routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Menu", ...
0
votes
1answer
70 views

How to pass a list and a string to one view from two actions of one controller? How to get this data separately in view file?

Please see this code of index.cshtml below:- List is displayed like below & The string is the Caption, for which i send the company ID to Controller @model MvcApplication3.Models.Company ...
0
votes
2answers
87 views

Please name some tutorial for MVC3 , which shows data transferring from Controller to View

Iam just a beginner in MVC , and i have doubts like , how to pass data from two ActionResults to the same view... and then at view how to get these two values returned from the controller... So far, ...

1 2 3 4 5 14
15 30 50 per page