473,394 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

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
Nov 18 '05 #1
2 1256
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" <Cr*****@discussions.microsoft.com> wrote in message
news:81**********************************@microsof t.com...
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

Nov 18 '05 #2
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" <Cr*****@discussions.microsoft.com> wrote in message
news:81**********************************@microsof t.com...
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


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daryl | last post by:
Hello I am using apply-templates and would like to pass a parameter to the template using with-param. Using call-template passes the parameter, but when I use apply-templates, the parameter seems...
5
by: david hepworth | last post by:
Hi All I will try to explain my problem. I am wishing to apply a template to the following XML. There are multiple event nodes within the register root node. For each of the event nodes there...
2
by: parksch2 | last post by:
Quick question: How would I nest the apply templates on the following XML structure? /ITEM/CHILD/ITEM/CHILD/ITEM/CHILD I would first like to apply templates on /ITEM/CHILD. Within that...
3
by: bjam | last post by:
Help! The apply-templates function is not currently allowing me to select a specific template... eventhough I tried putting a select statement, it does not seem to work??? Can someone help show...
1
by: Christopher Benson-Manica | last post by:
IE 5.0 apparently does not support the apply() method for function objects - the following fails: function foo() { alert( this.length ); } foo.apply( ); Is there a convenient way to add an...
2
by: jimbo_vr5 | last post by:
Hey I think i've figured out the idea behind apply-templates. But going through the tutorial on <http://www.w3schools.com/xsl/xsl_apply_templates.asp> theres simply just something that i dont...
1
by: Trent | last post by:
Hello,everyone. I'm setting a db2 replication environment using UDB version 8.1.5 running on Windows 2000 servers. The source server is on a Windows server with the capture program running while...
3
by: almousawi | last post by:
I am working on a DB2 replication program that used to work. I ran the "warm" capture program to get a cold start and I am running the apply program, but, the apply does not replicate the data. I...
4
by: esmith2112 | last post by:
Having a bear of a time trying to implement replication under 8.2 environment. I've created all of the control structures on both source and target database and can actually see data being staged...
0
by: mdb_1974 | last post by:
Hello I tried to do an initial full refresh but I failed - nothing happens (no error at all). Apply works without errors. Details of my environment: I have the following replication scenario:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.