Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2006, 12:50 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The same applies to static Hyperlinks and to programmatically created HyperLinks:

HyperLink myCoolLink = new HyperLink();
myCoolLink.NavigateUrl = "SomePage.aspx";
myCoolLink.CssClass = "MyClass";
myCoolLink.Text = "Some Text";

This ends up in the browser as:

<a href="SomePage.aspx" class="MyClass">Some Text</a>

Not sure whether you typed over my message, or something else went wrong, but you need a dot in front of MyClass.

[WRONG]
MyClass
{
  text-decoration: none;
}

MyClass:hover
{
  text-decoration: underline;
}

[RIGHT]
.MyClass
{
  text-decoration: none;
}

.MyClass:hover
{
  text-decoration: underline;
}

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move the mouse in VC++ 2005 marcelo39 Visual C++ 0 April 25th, 2008 09:36 AM
my problem with vc++2005 Anahita Visual C++ 2005 0 March 27th, 2007 09:22 AM
Please, need help with VC 2005 express IDE! pghTech Visual C++ 2005 0 June 27th, 2006 06:40 PM
How could i store a link in a DataRow in VC# 2005? Lalit Pradhan C# 2005 0 June 9th, 2006 07:10 AM
vc++2003 can't link properly. Kilka Visual C++ 1 March 15th, 2005 06:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.