Paul,

I'd take Ryan's solution a step further:  make a new class that derives from 
UserControl, do what you want to in the proper
lifecycle places for your control (i.e. OnInit, OnLoad, OnPreRender, OnUnload) 
then override Render with what you want to output.
Keep in mind the mime/content like Ryan suggests.

 - David

Ryan Heath wrote:
Hi,

I think you should change the subject ;)

You could derive a class from Literal, its Text property could then
contain the xml.
Mind that at page level you should set the mime/content type to
text/xml, so the browser recognizes it as an xml response.

// Ryan

On 5/8/06, Paul Cowan <[EMAIL PROTECTED]> wrote:
Hi all,

I am writing a user control and I want it's output to be xml instead
of html.Does anyone know how I can achieve this?
ThanksPaul

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to