WebControls, FreeTextBox & Dynamic Creation

S

Synccore

I am somewhat new to C#, and i have encountered a problem to which I see no
solution.

I have a web page that contains some c# code that initiates on page load. The
primary purpose of this code is to create a large string, by retrieving data
from an XML file, that is then stored into a label. The string comprised of
html data, and is called with the following line placed in the HTML portion of
the page:

<asp:label id="TopicMaterials" runat="server" />

Depending on the number of paragraphs, I need to insert a number of
FreeTextBox's (FTB). To setup the FTB's I use the following line:
<FTB:FreeTextBox id='FreeTextBox2' width='300' height='675' runat='server' />

The problem is that if I place this previous line into the XML file (as
<![CDATA[ ]]> to stop the XML parser from thinking it is a XML tag), the FTB's
do not load.

One procedure that does work is to hard code the FTB line into the HTML portion
of the page but the client want the page to be dynamic.
 

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

Top