Hi,
I have following problem:
1. template content is stored in database string field, for example:
"<HTML><HEAD></HEAD><BODY ID="BODYTAG"></BODY></HTML>
2. page content is also stored in database:
"<div>Hello Problem!!</div>"
3. page.aspx must first load template value and then inserts into template
body innerHTML value of content.
Question:
Is there any possibility to access body through ID:
BODYTAG.innerHTML = "<div>Hello Problem!!</div>"
Thanks for Your reply,
Matjaz Zalar 5 1020
Matjaz,
Yes you can access the body tag from code-behind.
I have sample code on my website: www.aboutfortunate.com. Just go to the
code library and then use the search text box there. Enter "Use body tag as
server control" or something similar and you'll find the sample code.
Any questions? Feel free to email me (Anyone).
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"Matjaz Zalar" <Ma****@anter.si> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl... Hi, I have following problem: 1. template content is stored in database string field, for example:
"<HTML><HEAD></HEAD><BODY ID="BODYTAG"></BODY></HTML>
2. page content is also stored in database:
"<div>Hello Problem!!</div>"
3. page.aspx must first load template value and then inserts into template body innerHTML value of content.
Question:
Is there any possibility to access body through ID:
BODYTAG.innerHTML = "<div>Hello Problem!!</div>"
Thanks for Your reply,
Matjaz Zalar
Thanks,
but your example simply add new generic HTML control. I have already specify
BODY tag in template, so your approach would give me another BODY
tag-control which has no relation to template BODY tag.
"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:eS**************@TK2MSFTNGP09.phx.gbl... Matjaz,
Yes you can access the body tag from code-behind.
I have sample code on my website: www.aboutfortunate.com. Just go to the code library and then use the search text box there. Enter "Use body tag
as server control" or something similar and you'll find the sample code.
Any questions? Feel free to email me (Anyone).
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order." Nietzche
"Matjaz Zalar" <Ma****@anter.si> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... Hi, I have following problem: 1. template content is stored in database string field, for example:
"<HTML><HEAD></HEAD><BODY ID="BODYTAG"></BODY></HTML>
2. page content is also stored in database:
"<div>Hello Problem!!</div>"
3. page.aspx must first load template value and then inserts into
template body innerHTML value of content.
Question:
Is there any possibility to access body through ID:
BODYTAG.innerHTML = "<div>Hello Problem!!</div>"
Thanks for Your reply,
Matjaz Zalar
Matajaz,
You didn't look closely enough. The code doesn't add a second body control
tag. It converts the original into a server side control that can be
manipulated.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"Matjaz Zalar" <Ma****@anter.si> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl... Thanks, but your example simply add new generic HTML control. I have already
specify BODY tag in template, so your approach would give me another BODY tag-control which has no relation to template BODY tag.
"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message news:eS**************@TK2MSFTNGP09.phx.gbl... Matjaz,
Yes you can access the body tag from code-behind.
I have sample code on my website: www.aboutfortunate.com. Just go to the code library and then use the search text box there. Enter "Use body tag as server control" or something similar and you'll find the sample code.
Any questions? Feel free to email me (Anyone).
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order." Nietzche
"Matjaz Zalar" <Ma****@anter.si> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... Hi, I have following problem: 1. template content is stored in database string field, for example:
"<HTML><HEAD></HEAD><BODY ID="BODYTAG"></BODY></HTML>
2. page content is also stored in database:
"<div>Hello Problem!!</div>"
3. page.aspx must first load template value and then inserts into template body innerHTML value of content.
Question:
Is there any possibility to access body through ID:
BODYTAG.innerHTML = "<div>Hello Problem!!</div>"
Thanks for Your reply,
Matjaz Zalar
In Your example there is <body> tag in html part of webform. Mine page.aspx
have NO BODY TAG or any one eather! The HTML part is loaded from database
value first for template and then for content.
Matjaz
"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:eY**************@TK2MSFTNGP10.phx.gbl... Matajaz,
You didn't look closely enough. The code doesn't add a second body control tag. It converts the original into a server side control that can be manipulated.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order." Nietzche
"Matjaz Zalar" <Ma****@anter.si> wrote in message news:Os**************@TK2MSFTNGP12.phx.gbl... Thanks, but your example simply add new generic HTML control. I have already specify BODY tag in template, so your approach would give me another BODY tag-control which has no relation to template BODY tag.
"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message news:eS**************@TK2MSFTNGP09.phx.gbl... Matjaz,
Yes you can access the body tag from code-behind.
I have sample code on my website: www.aboutfortunate.com. Just go to
the code library and then use the search text box there. Enter "Use body
tag as server control" or something similar and you'll find the sample code.
Any questions? Feel free to email me (Anyone).
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order." Nietzche
"Matjaz Zalar" <Ma****@anter.si> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... > Hi, > I have following problem: > 1. template content is stored in database string field, for example: > > "<HTML><HEAD></HEAD><BODY ID="BODYTAG"></BODY></HTML> > > 2. page content is also stored in database: > > "<div>Hello Problem!!</div>" > > 3. page.aspx must first load template value and then inserts into template > body innerHTML value of content. > > Question: > > Is there any possibility to access body through ID: > > BODYTAG.innerHTML = "<div>Hello Problem!!</div>" > > Thanks for Your reply, > > > Matjaz Zalar > >
Matjaz,
That's my point. Change your template so that it doesn't add the body tag.
Use a dynamic body tag on the page your template is loading into so that you
can control what you need to.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"Matjaz Zalar" <Ma****@anter.si> wrote in message
news:eA******************@tk2msftngp13.phx.gbl... In Your example there is <body> tag in html part of webform. Mine
page.aspx have NO BODY TAG or any one eather! The HTML part is loaded from database value first for template and then for content.
Matjaz "S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message news:eY**************@TK2MSFTNGP10.phx.gbl... Matajaz,
You didn't look closely enough. The code doesn't add a second body
control tag. It converts the original into a server side control that can be manipulated.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order." Nietzche
"Matjaz Zalar" <Ma****@anter.si> wrote in message news:Os**************@TK2MSFTNGP12.phx.gbl... Thanks, but your example simply add new generic HTML control. I have already specify BODY tag in template, so your approach would give me another BODY tag-control which has no relation to template BODY tag.
"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message news:eS**************@TK2MSFTNGP09.phx.gbl... > Matjaz, > > Yes you can access the body tag from code-behind. > > I have sample code on my website: www.aboutfortunate.com. Just go to the > code library and then use the search text box there. Enter "Use body tag as > server control" or something similar and you'll find the sample
code. > > Any questions? Feel free to email me (Anyone). > > -- > Sincerely, > > S. Justin Gengo, MCP > Web Developer / Programmer > > Free code library at: > www.aboutfortunate.com > > "Out of chaos comes order." > Nietzche > > > "Matjaz Zalar" <Ma****@anter.si> wrote in message > news:%2***************@TK2MSFTNGP10.phx.gbl... > > Hi, > > I have following problem: > > 1. template content is stored in database string field, for
example: > > > > "<HTML><HEAD></HEAD><BODY ID="BODYTAG"></BODY></HTML> > > > > 2. page content is also stored in database: > > > > "<div>Hello Problem!!</div>" > > > > 3. page.aspx must first load template value and then inserts into template > > body innerHTML value of content. > > > > Question: > > > > Is there any possibility to access body through ID: > > > > BODYTAG.innerHTML = "<div>Hello Problem!!</div>" > > > > Thanks for Your reply, > > > > > > Matjaz Zalar > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: the wonderer |
last post by:
This is an elementary question, but I've not been able to find the
answer, so here goes:
I am developing a site using php. I have the html header information
in a file that I include in all the...
|
by: Kiyomi |
last post by:
Hello,
I create a Table1 dynamically at run time, and at the same time, I would
like to create LinkButton controls, also dynamically, and insert them into
each line in my Table1. I would...
|
by: Stu |
last post by:
Hi,
I am writing a content management system that has to have W3C compliant
output. The pages are template driven and there are special strings within
the template to be used as placeholders for...
|
by: Reza Nabi |
last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a
placeholder dynamically based on the ctlName querystring passed in the URL.
Webform (LoadCtl.aspx) also passes a...
|
by: Steve Booth |
last post by:
I have a web form with a button and a placeholder, the button adds a user
control to the placeholder (and removes any existing controls). The user
control contains a single button. I have done all...
|
by: Nathan Sokalski |
last post by:
I am trying to dynamically add controls to my page, but am having trouble
with controls such as buttons. I have been able to add simple controls such
as Label controls, because they can be placed...
|
by: santosh singh |
last post by:
Hi,
I have one .aspx file which is generating whole page dynamically by taking all the HTML tags from SQL SERVER 2000 database . This .aspx is also containing one user control ( which contains two...
|
by: netasp |
last post by:
hi all,
how can I populate one aspx form when page is loading based on page ID? for
example:
loading page A (to search for VB code) would display labels and texboxes,
dropdown lists all related...
|
by: Srikanth Ram |
last post by:
Hi,
I'm creating a PHP application. In this a dynamic table with the fields in the database is generated in a page. I have placed a checkbox in each row of the table to approve/disapprove...
|
by: Lewis Holmes |
last post by:
Hi
I have the following situation in one of my asp.net pages.
The user can add multiple table rows to a form by selecting a button. These
rows can contain asp.net controls. When this button is...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
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...
|
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: 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...
| |