WebControl from string

J

Jack

Hi,

I have a webform with Panel.
In callback, I have a string:
"<asp:textbox id="text1">"

I want to "parse and compile" this string. After that textbox should
appears on panel.

Is this possible?

Thanks,
Jack
 
S

Shiva

Hi,
Check out Page.ParseControl(String)

Hi,

I have a webform with Panel.
In callback, I have a string:
"<asp:textbox id="text1">"

I want to "parse and compile" this string. After that textbox should
appears on panel.

Is this possible?

Thanks,
Jack
 
S

Scott Allen

Jack:

I'm not sure I entirely understand your question, but...

If you place you text into a user control file, you could use the
LoadControl method to parse and compile the text into a control you
can then place on the form.

What I have done in these situtations is abstract away the source of
the cached data with a new class (or classes, if need be).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,144
Latest member
KetoBaseReviews
Top