Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How can I apply this CSS to the asp.net?

Reply
Thread Tools

How can I apply this CSS to the asp.net?

 
 
=?Utf-8?B?Q3J5c3RhbA==?=
Guest
Posts: n/a
 
      09-23-2004
Hi there,
I am converting ASP pages to asp.net pages.
The orignal anchor is:
<a class="nohover" href="..."> < img src="..." height="30" width="30"
border="0"></a>
I create an asp:hyper link for it:
<asp:hyperlink class="nohover" id="img" navigateurl=".." imgurl="..."
height="30" width="30" ></asp:hyperlink>

The .net rendered html is:
<A class="nohover" id="IMG" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH:
0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 30px; HEIGHT: 30px; BORDER-RIGHT-WIDTH:
0px" href="..."><IMG src="..." border=0></A>

The rendered style overwrite my "nohover" style class.
Can someone tell me how I can make my "nohover" work?

Thanks
 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      09-23-2004
seems to me that Visual Studio is screwing around with your tags..there's no
reason why it's rendering all that crap.

On a side note you can use CssClass instead of class. just class will work,
but only because unknown properties are rendered as-is into html attributes.
This won't fix your problem though.

--
MY ASP.Net tutorials
http://www.openmymind.net/


"Crystal" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi there,
> I am converting ASP pages to asp.net pages.
> The orignal anchor is:
> <a class="nohover" href="..."> < img src="..." height="30" width="30"
> border="0"></a>
> I create an asp:hyper link for it:
> <asp:hyperlink class="nohover" id="img" navigateurl=".." imgurl="..."
> height="30" width="30" ></asp:hyperlink>
>
> The .net rendered html is:
> <A class="nohover" id="IMG" style="BORDER-TOP-WIDTH: 0px;

BORDER-LEFT-WIDTH:
> 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 30px; HEIGHT: 30px;

BORDER-RIGHT-WIDTH:
> 0px" href="..."><IMG src="..." border=0></A>
>
> The rendered style overwrite my "nohover" style class.
> Can someone tell me how I can make my "nohover" work?
>
> Thanks



 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q3J5c3RhbA==?=
Guest
Posts: n/a
 
      09-24-2004
Hi,
Sorry I mada a mistake. I do use CssClass in my asp:Hyperlink control.
I still can't apply "noHover" class to my image.


"Karl Seguin" wrote:

> seems to me that Visual Studio is screwing around with your tags..there's no
> reason why it's rendering all that crap.
>
> On a side note you can use CssClass instead of class. just class will work,
> but only because unknown properties are rendered as-is into html attributes.
> This won't fix your problem though.
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "Crystal" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi there,
> > I am converting ASP pages to asp.net pages.
> > The orignal anchor is:
> > <a class="nohover" href="..."> < img src="..." height="30" width="30"
> > border="0"></a>
> > I create an asp:hyper link for it:
> > <asp:hyperlink class="nohover" id="img" navigateurl=".." imgurl="..."
> > height="30" width="30" ></asp:hyperlink>
> >
> > The .net rendered html is:
> > <A class="nohover" id="IMG" style="BORDER-TOP-WIDTH: 0px;

> BORDER-LEFT-WIDTH:
> > 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 30px; HEIGHT: 30px;

> BORDER-RIGHT-WIDTH:
> > 0px" href="..."><IMG src="..." border=0></A>
> >
> > The rendered style overwrite my "nohover" style class.
> > Can someone tell me how I can make my "nohover" work?
> >
> > Thanks

>
>
>

 
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
How to apply ACL to a management port (CSS) fangyong.F@gmail.com Cisco 2 01-05-2006 06:21 AM
Can't apply CSS class to DataGrid's HyperlinkColumn? =?Utf-8?B?RGF2ZQ==?= ASP .Net 1 02-27-2004 04:31 PM
Re: How to apply CSS to entire application? Kevin Spencer ASP .Net 1 10-15-2003 07:36 AM
Newbie question about CSS - can you apply a style to an entire table or only to a <TD> cell Shiperton Henethe HTML 5 09-19-2003 01:58 AM
[XSLT] could not apply "apply-templates" Stefan Siegl XML 1 07-18-2003 09:43 AM



Advertisments