470,631 Members | 1,657 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

<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 2983
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Wolfgang Schwanke | last post: by
1 post views Thread by Frances Del Rio | last post: by
reply views Thread by Chris Leffer | last post: by
reply views Thread by OldProfessor | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.