Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Streamreader 1

Status
Not open for further replies.

fordtran

Programmer
Jun 15, 2005
101
ZA
I am conversant with reading a textfile and writing that to a label control on my web page. Is it possible to read that directly onto the page in stead of into a control.

Thanks

fordtran
 
are you wanting to stream the file to open in the relevant application. if you looking into Binarywriting and adding the content headers.. you should see plenty of examples if you google for it :)
 
Hi ca8msm

My problem is that if I write to a control, that control may be wider than the page of the browser and the client will then see only a part of the text, whereas when I write directly to the page, the text will wrap and he will be able to read averything.


fordtran
 
My problem is that if I write to a control, that control may be wider than the page of the browser and the client will then see only a part of the text, whereas when I write directly to the page, the text will wrap and he will be able to read averything.
That's not true at all. Page layout can be controlled directly by CSS regardless of which HTML tags text is written to.


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
ca8msm
Hi - thanks
Please give me an idea how I should go about it - I know cascading style sheets.


fordtran
 
If you're setting the Label's Text property, the text should wrap as if you wrote directly to the page as long as you have a blank "Width" property.

Also, writing to a Literal control is exactly like writing directly to the page. Treat both situations similarly.

MCP, MCTS - .NET Framework 2.0 Web Applications
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top