473,396 Members | 1,726 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,396 software developers and data experts.

can .net access HTML tag contents and modify them?

This is maybe a blue-sky wish, but I have to ask...

Can .net access/modify the contents of an HTML tag on the page?

For instance, in XML, one can grab and set the properties for a tag. In
..net, one can grab and set the properties of a webcontrol tag.

What I was specifically wondering is if I could modify the contents of the
TITLE tag from the codebehind using a method like this. (I know there are
plenty of other ways to write out the TITLE tag dynamically via .net, but I
was just curious if it can be done to a static TITLE tag from the
codebehind.)

To get VERY specific, in pseudo code, I was wondering if one could do
something like this:

if page is a post back and page is not valid then
grab the contents of the TITLE tag
write out new contents as "ERROR:" & contents of original TITLE tag
end if

-Darrel
Nov 18 '05 #1
2 1494
throw a "runat=server" on it and declare it in the codebehind and you should
be able to

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"darrel" <no*****@hotmail.com> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...
This is maybe a blue-sky wish, but I have to ask...

Can .net access/modify the contents of an HTML tag on the page?

For instance, in XML, one can grab and set the properties for a tag. In
.net, one can grab and set the properties of a webcontrol tag.

What I was specifically wondering is if I could modify the contents of the
TITLE tag from the codebehind using a method like this. (I know there are
plenty of other ways to write out the TITLE tag dynamically via .net, but
I
was just curious if it can be done to a static TITLE tag from the
codebehind.)

To get VERY specific, in pseudo code, I was wondering if one could do
something like this:

if page is a post back and page is not valid then
grab the contents of the TITLE tag
write out new contents as "ERROR:" & contents of original TITLE tag
end if

-Darrel

Nov 18 '05 #2
> throw a "runat=server" on it and declare it in the codebehind and you
should
be able to


Hmm...good idea.

-Darrel
Nov 18 '05 #3

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

Similar topics

6
by: John Galt | last post by:
I have a MDB (Access 2002) with OLE Objects in 1 column of a table. The obj is a GIF. I want to extract the gif and put it in a file in a directory on a network drive. Can anyone help me...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
29
by: Patrick | last post by:
I have the following code, which regardless which works fine and logs to the EventViewer regardless of whether <processModel/> section of machine.config is set to username="SYSTEM" or "machine" ...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
16
by: listerofsmeg01 | last post by:
Hi all, New to Javascript, and want to learn to do things the RIGHT way. I have a dynamic table which is populated using Javascript. Currently I am looking at adding nodes using the W3C DOM,...
12
by: Peter Michaux | last post by:
Hi, I am experimenting with some of the Ruby on Rails JavaScript generators and see something I haven't before. Maybe it is worthwhile? In the page below the script is enclosed in //<!]> ...
1
by: smaczylo | last post by:
Hello, I've recently been asked to work with Microsoft Access, and while I feel quite comfortable with Excel, I'm at a complete loss with databases. If someone could help me with this issue I'm...
6
by: Wesley Peace | last post by:
I hate to cross post, but I've gotten no answer yet on a problem I'm having with visual studio 2008. I've created a series of forms with controls to access a Access database tables. The...
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:
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
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.