I have an action filter that is responsible for placing some common information into the ViewBag for use by all views in the shared _Layout.cshtml file.
i have @Html.ActionLink(\"Remove 1034, 1035, 1036\", \"RemoveSelected\") Now i want to set each id from Controller
If I have a Controller, with an Index page: @model IEnumerable<MvcMovie.Models.Movie> @{ ViewBag.Title = \"Index\";
How can I store a开发者_C百科 value in the ViewBag accessing it from javascript?You cannot store a value in ViewBag from javascript. ViewBag is a server side concept and exists only on the server. Jav
I am developing a website using asp.net MVC I want to show the name of user after he/she logged in the website.
Can anyone point me in the right direction as to how to pass one column of data in a list using viewbag to a strongly typed view. I am passing a list of CustomerSites using a strongly typed view. I wo
The goal is to get the data from the ViewBag.Array to a Javascript array. The data is calculated in the controller so I cannot fetch it straight from the database. I need the data to draw a chart with
Just came across an interesting effect while debugging a View. The scenario is easy to reproduce - I have a breakpoint in a View, in the Watch window I add ViewBag.ViewData and the value is null. Howe
I have number of action methods in my controller that retrieve data from web services or database. Along them there are other action methods in the same controller that use that data. As I would love
I just saw an SO question about the System.Collections.ConcurrentBag<T> class, and I\'ve seen the ViewBag property of the Controller in ASP.NET MVC.In my experience, I\'ve learned that it\'s eas