J
Juan Xavier Larrea
Greetings,
How can i parse inline code? I have the following code:
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<asp:TextBox id=\"myControl\" runat=\"server\" />");
sb.Append("<%= \"Hello!\"%>");
string strControl = sb.ToString();
Control oControl = Page.ParseControl(strControl);
The textbox renders properl, but ParseControl() apparently ignores all
<%...%> inline embedded code (except for page directives).
Is there a solution?
Thanks.
How can i parse inline code? I have the following code:
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<asp:TextBox id=\"myControl\" runat=\"server\" />");
sb.Append("<%= \"Hello!\"%>");
string strControl = sb.ToString();
Control oControl = Page.ParseControl(strControl);
The textbox renders properl, but ParseControl() apparently ignores all
<%...%> inline embedded code (except for page directives).
Is there a solution?
Thanks.