Browse by Tags

Related Posts

  • ViewData and Foreach

    Hey guys, I am trying to pass data in my Master page by implementing classes as below: File: ~/Controllers/ATController.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Mvc.Ajax; using Gateway.Library; namespace Gateway.Controllers...
    Posted to ASP.NET MVC (Forum) by loveriysa on 05-06-2009, 12:00 AM
    Filed under: MVC, viewdata, Foreach
  • After the action is executed, I need to access ViewData and TempData, is that possible?

    In the controller you need to be aware of the difference between ViewData and TempData in relation to redirects. I want to make it possible to put something in ViewData under a unique key and if the page is redirected move it to TempData right before the redirect. I was initially thinking about the Application...
    Posted to ASP.NET MVC (Forum) by random0xff on 02-24-2009, 12:00 AM
    Filed under: MVC, tempdata, viewdata
  • HttpContext --- What it does ? (MVC View Unit Testing)

    Hi all, I have a problem with the following code.. I am trying write unit test the view pages of MV... My code is executing without an error but it returns null value when call the RenderView method... Can any one please help me with this ? My code is as follows. private static string RenderView(string...
    Posted to ASP.NET MVC (Forum) by foiaz on 11-10-2008, 12:00 AM
    Filed under: mvc view, MVC ViewPage, mvc viewpage visualstudio, nunit, view engines, viewdata, viewname ViewContext, viewpage, ViewResult, .net.3.5, aps.net mvc, ASP.NET mvc, ASP.NET MVC ViewPage UserAgent, ASP.NET MVC, iview, mocks, Mocks HttpContext, Unit Test
  • Re: ViewDataDictionary change mentioned in release notes

    DISCLAIMER: I haven't tried this in practice. I've only browsed througr MVC source code and VS Help/MSDN. OK. After disclaimer, let's do some work. Here is a decompiled source code for Eval metod that takes two arguments: 1 public string Eval( string expression, string format) 2 { 3 object...
    Posted to ASP.NET MVC (Forum) by panjkov on 10-17-2008, 12:00 AM
    Filed under: viewdata, ASP.NET MVC, eval
  • How to pass data from view to controller Mvc preview 5

    Hello, I am working on MVC Preview 5.I have a problem passing textbox value form the view to the controller. If I use pure HTML controls,passing values would be possible using form submit. But, how can I do the same with ASP.Net server controls? Can I still access the form control values submitted from...
    Posted to ASP.NET MVC (Forum) by Avani_nayak on 10-14-2008, 12:00 AM
    Filed under: MVC, mvc .net, MVC ASP.NET, MVC Preview 5, view, viewdata, Views, .net.3.5, asP mvcp.net mvc, ASP.NET mvc, ASP.NET mvc BindingHelperExtensions, how to pass data from view to controller, mvc form, mvc forms
  • Re: Products and Tags. How to create this?

    Perhaps you might use ViewData Dot notation, as explained in Matt Hawley blog post http://blog.eworldui.net/post/2008/05/ViewData-quot3bdotquot3b-Notation-Expressions-in-ASPNET-MVC.aspx In that case you might create another class as wrapper around Product and its tags, as you already mentioned.
    Posted to ASP.NET MVC (Forum) by panjkov on 06-06-2008, 12:00 AM
    Filed under: viewdata, ASP.NET MVC
  • about Html.Select()

    hey , my problem is very simple but i am not able to figure it out what should i do , i am using VS2008 and using MVC Preview3 now i am tring to fill my dropdownlist with some values , in scott example and most of the example i have seen every one is using MVCToolKit but when i include mvctoolkit in...
    Posted to ASP.NET MVC (Forum) by Ahtesham on 05-31-2008, 12:00 AM
    Filed under: MVC, previev 3, viewdata, Html.Select
  • Re: One Strongly Typed ViewData to rule them all?

    Yes so the viewdata class would be somthing like this (which just uses my types generated by SubSonic): 1 Public Class SharedViewData 2 3 Public CategoryList As List(Of SubSonic.DB.Category) 4 Public Category As SubSonic.DB.Category 5 Public ProductList As List(Of SubSonic.DB.Product) 6 Public Product...
    Posted to ASP.NET MVC (Forum) by alivemedia on 05-20-2008, 12:00 AM
    Filed under: MVC, viewdata, Controller
  • ViewData in a Master Page

    Hi, In the Master Page for my site, I want to display a menu based on records in my database. Simple enough concept, but i'm not sure of where to create and pass in the viewdata to the Master Page. With a regular Page View the data would be created in the controller, but do Master Pages have their...
    Posted to ASP.NET MVC (Forum) by marcusjw on 05-19-2008, 12:00 AM
    Filed under: viewdata, Controller, Master Pages
  • TempData vs ViewData

    I might have missed some important document that describe the difference, so, just in case, a link will be enough... Otherwise, can someone help me understand the difference between TempData and ViewData? From my understanding of this ViewData is meant to be passed to the View of the page TempData is...
    Posted to ASP.NET MVC (Forum) by simonech on 04-21-2008, 12:00 AM
    Filed under: tempdata, viewdata
Page 1 of 3 (25 items) 1 2 3 Next >