Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:709641
More Search Options
RSS Available
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 . Instead, you have to add a document type to the top of your XML: <!DOCTYPE stylesheet [<!ENTITY nbsp " "> 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 ( ). My ajax response is bombing on a string containing a non breaking space ( ). 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 >
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online