How best to display content produced by web-service?

  • Thread starter Thread starter anthonysmales
  • Start date Start date
A

anthonysmales

I have created a web-service which returns a line of HTML.
I have created a web-application which calls the web-service and then sets
the Label1.Text property to the output of the web-service, in order to
display the HTML.

This works, but seems very simplistic, so I was wondering if the humble
Label object is the best tool for the job? I have noticed that there is a
Panel object that I may be able to use instead. (I would like to be able to
display XML too).
 
You just want to display text on a form? I'd look at using either a
textbox or RichTextBox with ReadOnly set to true. Maybe I'm missing
some other requirement of yours...
mike

I have created a web-service which returns a line of HTML.
I have created a web-application which calls the web-service and then
sets
the Label1.Text property to the output of the web-service, in order to
display the HTML.

This works, but seems very simplistic, so I was wondering if the
humble
Label object is the best tool for the job? I have noticed that there
is a
Panel object that I may be able to use instead. (I would like to be
able to
display XML too).
 
Oops - you said "web-application". ignore my previous post ( I knew I
was missing something!)
I'd still look at a TextBox with readonly set to true.

Optionally, I believe you can use Response.Write() in the Page's Load
method if you just want it to display on a page:


private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Response.Write("This is some text");
}




I have created a web-service which returns a line of HTML.
I have created a web-application which calls the web-service and then
sets
the Label1.Text property to the output of the web-service, in order to
display the HTML.

This works, but seems very simplistic, so I was wondering if the
humble
Label object is the best tool for the job? I have noticed that there
is a
Panel object that I may be able to use instead. (I would like to be
able to
display XML too).
 
Back
Top