Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > IE filters and ASP controls

Reply
Thread Tools

IE filters and ASP controls

 
 
Pedja
Guest
Posts: n/a
 
      01-20-2004
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:
progidXImageTransform.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: progidXImageTransform.Microsoft.Alpha(Opacity=50 );">

Can anybody please advice me what is the problem here?

Thanks in advance.
- Predrag.
 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      01-20-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> 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:
> progidXImageTransform.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: progidXImageTransform.Microsoft.Alpha(Opacity=50 );">
>
> Can anybody please advice me what is the problem here?
>
> Thanks in advance.
> - Predrag.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Stacked polariser filters instead of ND filters? peter Digital Photography 5 12-13-2010 10:25 PM
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski ASP .Net 4 09-05-2007 03:27 AM
Issues in ASP.NET 2.0 when dynamically loading user controls or asp.net web controls??? Bob Rock ASP .Net 1 09-17-2006 01:49 PM
using the Filters DLL (image filters) Dieter Vanderelst Python 1 02-15-2006 09:56 AM
Canon: EF filters = EF-S filters? [blu|shark] Digital Photography 17 01-28-2004 10:04 AM



Advertisments