473,399 Members | 2,858 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,399 software developers and data experts.

Custom Tags???

Is it possible to create Custom Tags in HTML and have ASP.NET replace these
custom tags with info from my database before the page is returned to the
client?

For example.... In an aspx file I would have plain HTML along with a custom
tag like this....
<p>Some text here. Email <MAIL:221>Web Master</MAIL> for more
information.</p>

The <MAIL> Custom Tag would be replaced with a mailto: link based on
information in record 221 in my Employee database.

How can this, or something similar, be done???

Thanks in advance for any information!

-- Eric D.
Nov 17 '05 #1
2 2019
You could create a custom server control and one of the attributes could be
your 221 value. So this would look like...

<MyTools:Mail record="221"></MyTools:Mail>

Check the .NET tutorials on creating a custom server control and they will
explain how to do this.

Philip
"EDOnLine" <ed*******@yahooX.com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
Is it possible to create Custom Tags in HTML and have ASP.NET replace these custom tags with info from my database before the page is returned to the
client?

For example.... In an aspx file I would have plain HTML along with a custom tag like this....
<p>Some text here. Email <MAIL:221>Web Master</MAIL> for more
information.</p>

The <MAIL> Custom Tag would be replaced with a mailto: link based on
information in record 221 in my Employee database.

How can this, or something similar, be done???

Thanks in advance for any information!

-- Eric D.

Nov 17 '05 #2
e
Here's something similar, but it doesn't use custom tags:

<p>Some text here. Email <asp:Hyperlink id="dbmail221"
runat=server></asp:Hyperlink> for more information.</p>

On page_load, for-each through the controls collection, watch the names for
'dbmail'; parse the trailing number into <recordnum>, and complete the
controls properties based upon employee record number <recordnum>.

"EDOnLine" <ed*******@yahooX.com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
Is it possible to create Custom Tags in HTML and have ASP.NET replace these custom tags with info from my database before the page is returned to the
client?

For example.... In an aspx file I would have plain HTML along with a custom tag like this....
<p>Some text here. Email <MAIL:221>Web Master</MAIL> for more
information.</p>

The <MAIL> Custom Tag would be replaced with a mailto: link based on
information in record 221 in my Employee database.

How can this, or something similar, be done???

Thanks in advance for any information!

-- Eric D.

Nov 17 '05 #3

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

Similar topics

1
by: E J | last post by:
Does anyone know of a way to wrap custom tags around selected text using execCommand or otherwise? I am developing a rich text editor for use in a web site and while there are a few decent ones...
2
by: Chris | last post by:
Im hoping someone can help me understand why this works? Requirement: Navigate DOM through javascript to perform DHTML actions. Issue: GIANT html document, up to 4MB in size, thousands and...
1
by: Steven | last post by:
H I'm struggling to think this one through At run time I want to be able to read a layout HTML file from a database which includes tags for modules, e.g ...
0
by: GearsR4Girls | last post by:
I wish to use custom tags for NDoc. I recognise i need to have a template xslt file whose path is specified in NDoc under the ExtensibilityStyleSheet heading. I have copied the XSLT from the NDoc...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
3
by: serge calderara | last post by:
Dear all, Let say that I have developped a funcionnal library that I distribute for use. That library can be integrated in a project by referencing it and then use it by calling function and...
2
by: KW | last post by:
I have a challenge and would appreciate any suggested approaches. I want to be able to let a group of end users create something like the following... <div> <custom:CustomTag...
1
by: Abdo Haji-Ali | last post by:
Previously I used to create user controls if I wanted to use a specific set of controls in multiple pages, however I want to deploy my control in other applications so I thought of creating custom...
1
Gulzor
by: Gulzor | last post by:
Hi, I have defined a set of custom tags that I put among regular HTML tags. E.g. <body> <div id="regular_id"> <namespace:container id="something" type="article" /> </div> </body>
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.