SQL, Content, and Method Calling...
I have content, stored in a database, that when called upon (queried) is deployed (written) to a webpage in a site I host. So, basically there is a field in my database called 'data' where that content is stored. But I wish to store different types of data in that field and handle it according to the type of data. So, I have a field in that database called 'Type' which is used to designate how the data is handled:
For example:
Type 1 data is normal html
(i.e. "<table><tr><td>some content here</td></tr></table>")
Type 2 data is a query or SQL string
(i.e. "Select * From Inventory Where Blah, Blah, Blah etc.")
Type 3 data is a method call to some method I wrote and stored in a DLL etc.
(i.e. "My.Net.DLL.Some.Static.Method()")
I want to know how to eval this method, in the case the method returns a string.
I might normally use it in the following manor (in c# code):
String data = My.Net.DLL.Some.Static.Method();
return data;
============================================
So, based on the type defined in the database referring to data in any given record I want to handle it accordingly.
Any Ideas...

