Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 6th, 2006, 05:19 PM
Registered User
Join Date: Jan 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default evaluate asp.net code stored in DB table


I'm sure I'm overlooking an obvious answer, but any help is greatly appreciated...

I'm trying to flesh out a content management system that will allow certain bits of asp.net (vb) code to be stored in text blobs of other content and have it evaluated when the page is rendered.

Sort of like:

text retrieved from the table:
'I want to have the current date render here [%=datetime.now =%] and have that display to the user with the actual current date and time.

(replacing the square brackets with regular angled ones of course)

so if I pull that string out of the db, how would I get that to evaluate the embedded code prior to display back to the user?



Old February 13th, 2006, 01:32 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


You need to look at http://msdn2.microsoft.com/en-us/lib....compiler.aspx


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can evaluate and test a website made by asp.ne mycwcgr ASP.NET 2.0 Professional 0 August 30th, 2007 06:07 PM
Re: ASP DB/RS functions in ASP.NET spinout ASP.NET 2.0 Basics 7 May 29th, 2007 11:00 AM
ASP Code running Stored Procedure kapi.goel ASP.NET 1.0 and 1.1 Basics 0 May 17th, 2006 12:19 AM
pass table name from asp to sqlserver stored prcdr KGANESH2006 SQL Server ASP 3 April 26th, 2006 01:28 AM
ASP.NET Stored Procedures kwilliams ASP.NET 2.0 Basics 1 March 16th, 2006 11:56 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.