How to convert ASP.NET code to HTML at run time?
How do I convert ASP.NET code to HTML at runtime?
Like it is done in the Visual St开发者_高级运维udio IDE (Source to Design). When I entered some code like below to a text box and click a button
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
it should convert it to HTML and render the button.
How are you trying to compile the source?
You may want to check out Visual Studio Express edition (free) or alternatively look at compiling through command line:
http://msdn.microsoft.com/en-us/library/dd293881.aspx
精彩评论