Search

You searched for the word(s): userid:709641

Matching Posts

  • wildcard routes

    I'm working on adapting ASP.Net MVC to work in a portal type environment. My page structure is driven by page meta data in a database. All pages are dynamically created via data in a database. Basically, an action equates to a page name which is unique. My goal is to have a single controller and override HandleUnknownAction method of the Controller class. Inside my custom HandleUnknownAction method, I will take the passed action and retrieve the corresponding page meta data from the database
    Posted to ASP.NET MVC (Forum) by Tom Schreck on 2/27/2008
    Filed under: ASP.NET MVC, controllerfactory, HandleUnknownAction
  • Re: RenderView ToString()

    Ah, yes. Partial views is what I'm trying to achieve. We have a content management system where a page is basically a collection of controls. All of the content for a page is stored in a database. Each control is responsible for consuming the data and rendering XHTML. So a page would be the coming together of multiple "partial views". Controls are arranged on a page via zones. Currently, our CMS is web forms driven and I'm trying to wrap my head around how I would go about using
    Posted to ASP.NET MVC (Forum) by Tom Schreck on 1/2/2008
  • Re: RenderView ToString()

    Johnathan What's a partial view?
    Posted to ASP.NET MVC (Forum) by Tom Schreck on 1/2/2008
  • Re: RenderView ToString()

    Steve Your solution allows me to accomplish my goal of capturing the View's rendered output.
    Posted to ASP.NET MVC (Forum) by Tom Schreck on 12/13/2007
  • Re: RenderView ToString()

    Thanks for the feedback, I'll have to give this a try. What I'm envisioning is something like this: [ControllerAction] public void Category( int id) { Category category = GetCategoryById(id); string ViewResults = RenderView( "Category" , category); ... } Being able to capture the rendered output of a View is important because within a controller, I could call multiple views and capture those results as strings then be able to cache them or whatever else I need to do. I use an Ajax
    Posted to ASP.NET MVC (Forum) by Tom Schreck on 12/13/2007
  • RenderView ToString()

    Is there a way to capture the results of RenderView() to a string?
    Posted to ASP.NET MVC (Forum) by Tom Schreck on 12/13/2007
    Filed under: MVC, RenderView, ASP.NET MVC
  • Re: string to xhtml

    I discovered that XML does not recognize &nbsp;. Instead, you have to add a document type to the top of your XML: <!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;"> This fixes the problem.
    Posted to Getting Started (Forum) by Tom Schreck on 3/7/2007
  • string to xhtml

    Is there a way to take a string and make it xhtml compliant? The string may contain ampersand and non breaking spaces (&nbsp). My ajax response is bombing on a string containing a non breaking space (&nbsp). So, is there a function that will take a string as input and return it as valid xhtml?
    Posted to Getting Started (Forum) by Tom Schreck on 3/5/2007
    Filed under: xhtml conversion
  • Re: Capture user control output to string

    Curt I've found a solution to my problem. Please check out link below http://www.ondotnet.com/pub/a/dotnet/excerpt/ASP.NETCookbook_chap1a/index.html?page=2 I'm not sure exactly how this works yet, but it does. I have to create a StringBuilder, StringWriter, and HtmlTextWriter. I call the control's RenderControl method and pass the HtmlTextWriter. This captures the html rendered output in the StringBuilder. Please check it out. Thanks Tom
    Posted to Getting Started (Forum) by Tom Schreck on 2/26/2007
  • Re: Capture user control output to string

    Oh, so you're suggesting creating the HTML in the control, then assign it to a property of that control so it's exposed for consupmtion. Makes sense. So, controls natively do not support the functionlaity for capturing the content they produce? Thanks for your time. Tom
    Posted to Getting Started (Forum) by Tom Schreck on 2/23/2007
Page 1 of 2 (12 items) 1 2 Next >