PC Review


Reply
Thread Tools Rate Thread

How best to display content produced by web-service?

 
 
anthonysmales
Guest
Posts: n/a
 
      5th Aug 2003
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).


 
Reply With Quote
 
 
 
 
Michael Mayer
Guest
Posts: n/a
 
      5th Aug 2003
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

"anthonysmales" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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).



 
Reply With Quote
 
Michael Mayer
Guest
Posts: n/a
 
      5th Aug 2003
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");
}




"anthonysmales" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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).



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I always display numbers produced from subtractionas posit Brijay Microsoft Excel Misc 2 22nd Oct 2009 03:09 PM
Network adepter instalation problem - The name is already in use as a service name or service display name Boaz Raufman Windows XP Hardware 2 24th Jul 2005 09:26 AM
Network adepter instalation problem - The name is already in use as a service name or service display name Boaz Raufman Windows XP Networking 0 20th Jul 2005 05:01 PM
display the cell that produced a result =?Utf-8?B?SmVycnkgV29vZA==?= Microsoft Excel Misc 1 6th Jun 2005 05:36 PM
OT: What is OTi Content Service? Charles Law Microsoft Dot NET 6 16th Nov 2004 05:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:12 AM.