473,769 Members | 6,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 986
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***@discussi ons.microsoft.c om> wrote in message
news:E0******** *************** ***********@mic rosoft.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
2155
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 page without knowing HTML - we want to write a real programmer's editor located on a web page in your browser with features like...
385
17305
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 extraneous jargons, such as in the Unix & Perl community. Unlike mathematicians, where in mathematics there are no fewer jargons but each and every one are
17
7685
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 pages, some dating back so far I probably wrote them in vi. About 4 years ago (thanks in part to hints found in this group) I converted about 80 pages to CSS, and was fairly happy with the result, plain though they are. Since then I've forgotten...
3
2765
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 html. How can I do this? Is there a better (and easier) way to export a dataset to a 'friendly-printer' format? The resulting XML file is hard to understand if printed, and that's why I'm using XLST. This is what the xsl file looks like. Can I...
6
21442
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 seems that a class could facilitate this better. Thanks
2
4496
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 best for evenness?
102
7128
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 of its documentation, it is a impeccability. it has or possesses properties of:
1
1805
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 step attribute. can anyone point me on my way with good examples for that and how to write extensions ? thank you in advance
1
1267
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 2.html. There is a div in 1.html. I want to write that div contents to 2.html. 2.html has some content in it. But when I write to 2.html, the div content is overwriting everything that is in 2.html and I dont want to do that. I am using this to...
0
9590
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9424
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10051
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10000
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8879
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.