Top "Viewbag" questions

ViewBag is a dynamic type object in the ASP.

How to create own dynamic type or dynamic object in C#?

There, is for example, ViewBag property of ControllerBase class and we can dynamically get/set values and add any number …

c# dynamic viewbag
What's the difference between ViewData and ViewBag?

I saw the ViewBag in MVC 3. How's that different than ViewData in MVC 2?

.net asp.net-mvc-3 difference viewbag viewdata
How to display a list using ViewBag

Hi i need to show a list of data using viewbag.but i am not able to do it. Please …

asp.net-mvc asp.net-mvc-3 model-view-controller viewbag
How to use a ViewBag to create a dropdownlist?

Controller: public ActionResult Filter() { ViewBag.Accounts = BusinessLayer.AccountManager.Instance.getUserAccounts(HttpContext.User.Identity.Name); return View(); } View: <td>…

asp.net-mvc viewbag dropdownlistfor
The name 'ViewBag' does not exist in the current context

I am trying to use ViewBag in my application, I have all of the recent dlls, the latest version of …

dll asp.net-mvc-3 gac viewbag
How do I access ViewBag from JS

My attempted methods. Looking at the JS via browser, the @ViewBag.CC is just blank... (missing) var c = "#" + "@ViewBag.CC"; …

c# javascript asp.net asp.net-mvc-3 viewbag
How ViewBag in ASP.NET MVC works

How does the ASP.NET MVC's ViewBag work? MSDN says it is just an Object, which intrigues me, how does "…

asp.net asp.net-mvc viewbag
Pass a simple string from controller to a view MVC3

I know this seems pretty basic, and it should be, but I cant find out where I am going wrong. (…

c# asp.net-mvc asp.net-mvc-3 viewbag
Updating PartialView mvc 4

Ey! How I could refresh a Partial View with data out of the Model? First time, when the page loads …

c# asp.net-mvc-4 partial-views viewbag
How do I render HTML from the Viewbag using MVC3 Razor

I am trying to pass a form element into an MVC3 view by using the Viewbag and simply write the …

html asp.net-mvc asp.net-mvc-3 razor viewbag