IE filters and ASP controls

Discussion in 'ASP .Net' started by Pedja, Jan 20, 2004.

  1. Pedja

    Pedja Guest

    Hello,
    I have a problem using IE filters in ASPX page (I use VS.NET 2002 and
    Windows XP). Namely, it looks like it works only if I set POSITION:
    absolute for a web control. Otherwise, it doesn't work.

    If I try the following HTML in my ASPX page:

    <HTML>
    <HEAD>
    <title>WebForm3</title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema"
    content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body>
    <asp:HyperLink id="HyperLink1" style="filter:
    progid:DXImageTransform.Microsoft.Alpha(Opacity=50); POSITION:
    absolute" runat="server"
    ImageUrl="http://msdn.microsoft.com/library/shared/toolbar/graphics/banners/MSDN_banner.gif"
    NavigateUrl="http://www.google.com">HyperLink</asp:HyperLink>
    </body>
    </HTML>

    it shows semi-transparent image, as it should. If you only remove
    POSITION: absolute
    from the source code above, the image will be 100% opaque.

    On the other hand, this code works properly (without absolute
    positioning):

    <img src="http://msdn.microsoft.com/library/shared/toolbar/graphics/banners/MSDN_banner.gif"
    style="filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);">

    Can anybody please advice me what is the problem here?

    Thanks in advance.
    - Predrag.
    Pedja, Jan 20, 2004
    #1
    1. Advertising

  2. Pedja

    Curt_C [MVP] Guest

    I had similar issues with these filters. It turned out to be a space that
    the IDE would mysteriously put into the code when I switched to design view.
    If I only used HTML and code-behind it was fine & consistent....

    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    www.Darkfalz.com


    "Pedja" <> wrote in message
    news:...
    > Hello,
    > I have a problem using IE filters in ASPX page (I use VS.NET 2002 and
    > Windows XP). Namely, it looks like it works only if I set POSITION:
    > absolute for a web control. Otherwise, it doesn't work.
    >
    > If I try the following HTML in my ASPX page:
    >
    > <HTML>
    > <HEAD>
    > <title>WebForm3</title>
    > <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
    > <meta name="CODE_LANGUAGE" Content="C#">
    > <meta name="vs_defaultClientScript" content="JavaScript">
    > <meta name="vs_targetSchema"
    > content="http://schemas.microsoft.com/intellisense/ie5">
    > </HEAD>
    > <body>
    > <asp:HyperLink id="HyperLink1" style="filter:
    > progid:DXImageTransform.Microsoft.Alpha(Opacity=50); POSITION:
    > absolute" runat="server"
    >

    ImageUrl="http://msdn.microsoft.com/library/shared/toolbar/graphics/banners/
    MSDN_banner.gif"
    > NavigateUrl="http://www.google.com">HyperLink</asp:HyperLink>
    > </body>
    > </HTML>
    >
    > it shows semi-transparent image, as it should. If you only remove
    > POSITION: absolute
    > from the source code above, the image will be 100% opaque.
    >
    > On the other hand, this code works properly (without absolute
    > positioning):
    >
    > <img

    src="http://msdn.microsoft.com/library/shared/toolbar/graphics/banners/MSDN_
    banner.gif"
    > style="filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);">
    >
    > Can anybody please advice me what is the problem here?
    >
    > Thanks in advance.
    > - Predrag.
    Curt_C [MVP], Jan 20, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dieter Vanderelst

    using the Filters DLL (image filters)

    Dieter Vanderelst, Feb 15, 2006, in forum: Python
    Replies:
    1
    Views:
    406
    Michele Petrazzo
    Feb 15, 2006
  2. tyv
    Replies:
    0
    Views:
    255
  3. tyv
    Replies:
    1
    Views:
    298
    John Black
    Feb 29, 2008
  4. Jay

    ASP Email Form and SPAM Filters

    Jay, Jan 5, 2004, in forum: ASP General
    Replies:
    5
    Views:
    391
    Stefan Berglund
    Jan 5, 2004
  5. tyv
    Replies:
    2
    Views:
    109
    Doug Gunnoe
    Feb 27, 2008
Loading...

Share This Page