<embed> referenced page called 2 times

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default <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


    Cris Curtis Guest

  2. Similar Questions and Discussions

    1. Event handlers called multiple times
      My DataGrid's event handlers looks like: Grid_ItemDataBound(...) { switch (e.Item.ItemType): { case ListItemType.Footer: ...// BREAKPONT...
    2. Problem with OnItemCreated and InitializePager being called four times
      Hello, I'm hoping someone here can shed some light on this problem or suggest alternate approaches. I'm creating a custom datagrid by...
    3. Count the no of times a script is called
      I have a fortran program calling a perl script for various parsing activities for multiple number of times. I wish to increment a variable by 1 in...
    4. OnItemCreated and OnItemDataBound called too many times?
      Has anyone run into the problem where OnItemCreated and/or OnItemDataBound is called twice as many times as necessary? If I have a grid with 4...
    5. COM dll being called multiple times
      > This issue I am seeing is the same information being How are you using the DLL from the asp code?
  3. #2

    Default Re: <embed> referenced page called 2 times

    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
    [url]http://www.swanandmokashi.com/[/url]
    Home of the Stock Quotes, Quote of the day and Horoscope web service
    "Cris Curtis" <chrisc@grsnet.com> wrote in message
    news:ufE%23YgsUDHA.2224@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
    >
    >

    Swanand Mokashi Guest

  4. #3

    Default Re: <embed> referenced page called 2 times


    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" <swanand@swanandmokashi.com> wrote in message
    news:%23%23KqButUDHA.1744@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
    > [url]http://www.swanandmokashi.com/[/url]
    > Home of the Stock Quotes, Quote of the day and Horoscope web service
    > "Cris Curtis" <chrisc@grsnet.com> wrote in message
    > news:ufE%23YgsUDHA.2224@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
    > >
    > >
    >
    >

    Cris Curtis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139