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
  • 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
  • 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
  • MVC routing question...

    Can someone help me out... new to this architecure.. Basically I have a single system that has default functionality but needs the ability have custom controller or custom view per client with navigation is stored in a database. So for example in a standards aspx page scenario the default products page...
    Posted to ASP.NET MVC (Forum) by tpiotrowicz on 03-04-2008, 12:00 AM
    Filed under: MVC, MVC ASP.NET, MVC ViewComponent, viewdata
  • Re: MasterPage<TViewData> Problem

    I had trouble with rjcox's solution, but I found modifying his included code to below, worked for me. public class MasterPageBugFix : System.Web.Mvc.ViewMasterPage { public new TViewData ViewData { get { TViewData d = (TViewData) this .ViewContext.ViewData; if ( null == d) { throw new InvalidOperationException...
    Posted to ASP.NET MVC (Forum) by Michael Jenkinson on 01-18-2008, 12:00 AM
    Filed under: MVC, viewdata, ASP.NET MVC, bug, Master Pages
  • Re: Passing ViewData to MVC User Controls

    Here is a good post from ScottGu on how he show you how to add objects into the ViewData dictionary using a key/value pattern like you are trying above. http://weblogs.asp.net/scottgu/archive/2007/12/06/asp-net-mvc-framework-part-3-passing-viewdata-from-controllers-to-views.aspx Now he is using a Page...
    Posted to ASP.NET MVC (Forum) by jimzim on 12-17-2007, 12:00 AM
    Filed under: MVC, viewdata
  • Passing ViewData to MVC User Controls

    I haven't been able to find any posts or documentation about how to do this and can't seem to get it working on my own. In my controller I am adding two lists to the viewdata like this: ViewData["list1"] = mylist; ViewData["list2"] = myotherlist; I have created a control that...
    Posted to ASP.NET MVC (Forum) by f00sion on 12-17-2007, 12:00 AM
    Filed under: MVC, user control, viewdata
  • Typed ViewPage Using Generics Without Code Behind

    I've successfully created .aspx view pages without code behind by replacing the first line with this: <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %> However, trying to change it to inherit the generics to get typed view data like the following doesn't seem...
    Posted to ASP.NET MVC (Forum) by ghotiman on 12-13-2007, 12:00 AM
    Filed under: MVC, viewdata, viewpage, generic, generics, typedview
Page 1 of 2 (11 items) 1 2 Next >