473,395 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

writing HTML....how?

Dear Helper,
I would like to write some text retrieved from a database of a web form.
However, if this text contains links to web sites or e-mail addresses I would
like to render them as Hyperlinks. More than that, I would like to write that
certain text somewhere, let's say inside a table's cell.
Now, I have tried Response.Write() , and it works great except the text
appears at the beginning of the page. (do i have to generate the whole page
myself?..can't i just insert some HTML?)
Another thing I tried was inserting the text(already formatted to support
the hyperlinks "<a href... />") into a textbox but then the controls are not
renderd as Hyperlinks, just plain text.
So, can anybody help me with this?
Thank you!
Nov 19 '05 #1
1 971
You can create a PlaceHolder object, then create a HtmlTable control,
populate the HtmlTable with your data in a for or while loop, and then use
the Controls.Add method of your PlaceHolder to put the table where you want
it.

I would suggest though, that you investigate the DataList, DataGrid, and
Repeater controls. You can create a custom control by inheriting any of
those controls, or you can just handle the ItemDataBound event for any of
these controls and format the data item to display how you want it.

You may want to look up those keywords in the MSDN library as a starting
point.

Good luck,

DalePres
MCAD, MCSE, MCDBA
"tzake" <tz***@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
Dear Helper,
I would like to write some text retrieved from a database of a web form.
However, if this text contains links to web sites or e-mail addresses I
would
like to render them as Hyperlinks. More than that, I would like to write
that
certain text somewhere, let's say inside a table's cell.
Now, I have tried Response.Write() , and it works great except the text
appears at the beginning of the page. (do i have to generate the whole
page
myself?..can't i just insert some HTML?)
Another thing I tried was inserting the text(already formatted to support
the hyperlinks "<a href... />") into a textbox but then the controls are
not
renderd as Hyperlinks, just plain text.
So, can anybody help me with this?
Thank you!

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Christoph Bergmann | last post by:
Hi... We want to write an open source web based TEXT editor and would be happy about any help ;-) Please notice: We do NOT want to write a web based WEB editor, where you can edit a web...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
17
by: Eric Lindsay | last post by:
Is learning to write CSS a better use of time than finding and using a package that produces complete web pages? I've moved to a new platform (Macintosh), taking with me about 400 personal web...
3
by: VMI | last post by:
I'm having trouble writing several records from an XML file into an html file. The problem is that it only outputs one record to the html file. I need to export all the records in the xml file to...
6
by: guy | last post by:
Does .NET have a class or set of functions that facilitate the creating and writing of html files? I have been creating files in streams and constructing html strings and writing them out but it...
2
by: Tony | last post by:
Yes, I need to specify a font type so that the characters will be evenly spaced when I write to a tab delimited text file. So how does one specify a font type to write/print and which font is...
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
1
by: spohle | last post by:
hi, i use a lot the enumerate in my scripts and got really interested in possibly writing my own enumerate as an extension, for which i would want to extend it to be able to pass a start and...
1
by: webmaniac | last post by:
Hi, I am trying to write the content of one html page to another. But the problem is it overwrites everything that other html page has. For Example, I have two pages. One is 1.html & second is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.