472,784 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,784 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 3049
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....
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.