Problem using asp:xml to run html code

B

Brendan

Hi
I have a problem when I use the asp:xml web control to
read an xml file containing other asp: web controls. It
works if I use HTML controls.

Example.
My xml file looks like this

<page xmlns:asp="http://www.w3.org/1999/XSL/Transform"
runat="server">
<form runat="server">
<h1>Hello World</h1>
<asp:Label id="Label1" Text="Label Control"
runat="server"/>
</form>
</page>

When I load this to an XML control, in the body of my
page, the label doesnt show, but the 'Hello World' does.

It works well with HTMLcontrols such as table, tr and td.

It seems to disregard controls beginning with 'asp:' e.g.
asp:label, asp:table, asp:tablerow, etc.

Anybody got a solution ?

Brendan
 

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
474,001
Messages
2,570,250
Members
46,848
Latest member
Graciela Mitchell

Latest Threads

Top