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

<embed> referenced page called 2 times

When I use an embed tag that uses a dynamic aspx page, the dynamic aspx page
appears to get called 2 times instead.
Below is code that adds an embed tag to a placeholder control that will use
a second aspx page to generate the svg for the embed.
svgchart.Controls.Clear();
string strSRC = "./DesktopModules/Enterprise/BusinessRuleSVG.aspx";
string HTML = "<EMBED SRC='" + strSRC + "' NAME='SVGEmbed' HEIGHT='450'
WIDTH='900' TYPE='image/svg+xml'
PLUGINSPAGE='http://www.adobe.com/svg/viewer/install/'>";
svgchart.Controls.Add(new LiteralControl(HTML));

The BusinessRuleSVG page will then get called 2 times instead of the
expected 1 time. Has anyone else experienced a problem such as this? I
have seen examples of users generating dynamic graphic files using the embed
tag, but not SVG files.

Any assistance is appreciated.

Thanks,
Cris
Nov 17 '05 #1
2 3071
set AutoEventWireup="false" in the Page directive
eg
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="YourPage.aspx.vb"
Inherits="YourApp.PageClassName" %>

HTH
--
Swanand Mokashi
Microsoft Certified Professional
http://www.swanandmokashi.com/
Home of the Stock Quotes, Quote of the day and Horoscope web service
"Cris Curtis" <ch****@grsnet.com> wrote in message
news:uf****************@TK2MSFTNGP10.phx.gbl...
When I use an embed tag that uses a dynamic aspx page, the dynamic aspx page appears to get called 2 times instead.
Below is code that adds an embed tag to a placeholder control that will use a second aspx page to generate the svg for the embed.
svgchart.Controls.Clear();
string strSRC = "./DesktopModules/Enterprise/BusinessRuleSVG.aspx";
string HTML = "<EMBED SRC='" + strSRC + "' NAME='SVGEmbed' HEIGHT='450'
WIDTH='900' TYPE='image/svg+xml'
PLUGINSPAGE='http://www.adobe.com/svg/viewer/install/'>";
svgchart.Controls.Add(new LiteralControl(HTML));

The BusinessRuleSVG page will then get called 2 times instead of the
expected 1 time. Has anyone else experienced a problem such as this? I
have seen examples of users generating dynamic graphic files using the embed tag, but not SVG files.

Any assistance is appreciated.

Thanks,
Cris

Nov 17 '05 #2

Thanks,

I did have AutoEventWireup = "False" but that got me looking at my other
page directives and found that I had set SmartNavigation="true" on the
parent page
which will of course make the embed call 2 times. My code is in a child
control and it would have taken me a long time without the tip to start
looking at the page directives.

Thanks again,
Cris
"Swanand Mokashi" <sw*****@swanandmokashi.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
set AutoEventWireup="false" in the Page directive
eg
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="YourPage.aspx.vb" Inherits="YourApp.PageClassName" %>

HTH
--
Swanand Mokashi
Microsoft Certified Professional
http://www.swanandmokashi.com/
Home of the Stock Quotes, Quote of the day and Horoscope web service
"Cris Curtis" <ch****@grsnet.com> wrote in message
news:uf****************@TK2MSFTNGP10.phx.gbl...
When I use an embed tag that uses a dynamic aspx page, the dynamic aspx

page
appears to get called 2 times instead.
Below is code that adds an embed tag to a placeholder control that will

use
a second aspx page to generate the svg for the embed.
svgchart.Controls.Clear();
string strSRC = "./DesktopModules/Enterprise/BusinessRuleSVG.aspx";
string HTML = "<EMBED SRC='" + strSRC + "' NAME='SVGEmbed' HEIGHT='450'
WIDTH='900' TYPE='image/svg+xml'
PLUGINSPAGE='http://www.adobe.com/svg/viewer/install/'>";
svgchart.Controls.Add(new LiteralControl(HTML));

The BusinessRuleSVG page will then get called 2 times instead of the
expected 1 time. Has anyone else experienced a problem such as this? I
have seen examples of users generating dynamic graphic files using the

embed
tag, but not SVG files.

Any assistance is appreciated.

Thanks,
Cris


Nov 17 '05 #3

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

Similar topics

0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
4
by: AES/newspost | last post by:
Can anyone provide a quick tip on the html structure to link from a thumb to a movie poster and from there on to a QuickTime movie, all in one go, using EMBED? I have a number of (large)...
1
by: Frances Del Rio | last post by:
I have this tag to embed a video: <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="video.wmv" name="Video"...
2
by: chaitatp | last post by:
Hi guys, I have posted a similar question before but this post has some different. The similar link is: ...
0
by: Chris Leffer | last post by:
Hi. I have a page that dynamically creates an <embed> tag. Several users are running the site using IE 6.0 without problems, but on just one user the sound won't play. That's the code that...
2
by: Annu | last post by:
Hi I need help on <enbed> tag. Following code(No 1) is working properly on windows but on linux code no.2 is not working Code No 1: <EMBED type='application/x-mplayer2' ...
0
by: OldProfessor | last post by:
I'm really stumped. I am trying to create a web site to honor my late son's heavy metal band. I want the mp3 music to play and lyrics to be displayed. The problem seems to be in getting the sound...
2
by: John | last post by:
I have CSS drop down navigatoon bar and it works fine. However, when I have page where I have an <embed - needed to show a PDF file, such as: <embed src="Security.pdf" width="900"...
1
by: Andy B | last post by:
I am trying to embed mp3 files in a web page by using the <embedtag. Every time I save the page I get xhtml validation(): embed tag no longer supported. When I run the page... I get nothing at all....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.