Convert string to executable c# code in code-behind [duplicate]

ChrisB

New Member
\[quote\] Possible Duplicate:
Execute a string in C# 4.0 \[/quote\]How can I get this string to execute:\[code\]string dt = "DateTime.Now";\[/code\]...so that this would result in today's date being displayed?:\[code\]lbl.Text = dt;\[/code\]
 
Back
Top