CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/10/2007 6:23:35 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 14 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
dactilifera
Asp.Net User
Menu links should be colored diferent7/10/2007 6:23:35 AM

0/0

Hy! I'm working on my first asp.net site. My menu is a <asp:Repeater ID="TopNavRepeat" runat="server" DataSourceID="SiteMapDataSource1" > (in a master page), so the source is a SiteMapDataSource. In a css file I configure colors for a:link,visited,hover and active but my problem is that after I clicked an option menu I want to stay the color from the a:active; now after I clicked the menu the colors of all links is the same, I do not know later which was the latest link active. Can you help me?!!!?!
Sohnee
Asp.Net User
Re: Menu links should be colored diferent7/10/2007 2:45:25 PM

0/0

Your best bet is to switch from the psuedo css classes to a dynamic class on the link.

For example, in .NET you can change the cssclass of a control - maybe to "activelink" and define an a.activelink css style.

ControlId.CssClass = "activelink";

Amanda Wang - M
Asp.Net User
Re: Menu links should be colored diferent7/13/2007 5:29:23 AM

0/0

Hi,

Sohnee is right you can use the cssClass of the contro, for example, I set the class="abc"

like below:

<asp:Repeater ID="Repeater2" runat="server" DataSourceID="SiteMapDataSource1">
                    <ItemTemplate>
              <a  class="abc" href='<%# Eval("Url") %>'><%# Eval("Title") %></a>

                    </ItemTemplate>
                    </asp:Repeater>
                    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />

 Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
DHTML and CSS for the World Wide Web: Visual QuickStart Guide Authors: Jason Cranford Teague, Pages: 592, Published: 2001
Computers Helping People with Special Needs: 9th International Conference, ICCHP 2004, Paris, France, July 7-9, 2004 ; Proceedings Authors: Klaus Miesenberger, Joachim Klaus, Dominique Burger, Wolfgang Zagler, Pages: 1191, Published: 2004
Beginning Web Programming with HTML, XHTML, and CSS Authors: Jon Duckett, Pages: 840, Published: 2004
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day: In One Hour A Day Authors: Laura Lemay, Rafe Colburn, Pages: 816, Published: 2006
The Lawyers Guide to Adobe Acrobat Authors: David L. Masters, American Bar Association Section of Law Practice Management, Pages: 173, Published: 2006
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 936, Published: 2006
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 936, Published: 2006
Dreamweaver MX 2004: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 836, Published: 2004
QuarkXPress 6 for Dummies Authors: Barbara Assadi, Galen Gruman, Pages: 456, Published: 2003
How to Do Everything with Adobe Encore DVD Authors: Doug Sahlin, Pages: 376, Published: 2004

Web:
get current menu link different color with javascript and css I want to make my current text link in my menu different color with css and ... The javascript that should get my current page menu link the ...
Should hypertext links be blue and purple? | evolt.org My second reflection concerns the question of whether visited links should change color or not. 61% of the sites in our study do not use different colors ...
Different color links on same page? - SitePoint Forums I am trying to get different color links on the same page. I have a side menu that I want the links to be a certain color and then the rest of the links in ...
Creating separate CSS styles for different links (primary menu ... Creating separate CSS styles for different links (primary menu, navigation, ... Sorry, the snippet above should have appeared like this: ...
CSS Creator Different color for hyperlink text in special menu ... However, there are menu bars for which I would like to make the links a different color. How would I specify that? ...
Link List Color on Intranets (Jakob Nielsen's Alertbox) Lists of links are an intermediate case between content-embedded links and menu items. Showing listed links in blue or in the site's main link color is the ...
Component's Parameters settings, in different locations, using ... First Menu link – blue square will be displayed (Color values will be loaded ... Component you can set different values for different menu links and in this ...
3 different color links all revert to default How do i get 3 separate link colors? 3 different color links all revert to default. ... vertical drop down menu links go here called up with ...
Left Collum Font Color (menu links) Left Collum Font Color (menu links) ... difficulty in finding where in the CSS to change the text color for different module positions. ...
Joomla! • View topic - different colors for each menu item Or you have more than one menu and you're not adding a suffix to the class to give a different color. If you look at this link ...

Videos:
realy cool ipod thing go to your ipod video and hold the center button and your menu button till it turns black then hold center button and the rewind button till a menu p...
Nvu: Multimedia Application: Nvu - Adding multimedia components to web pages.
Comparing two documents with FlightCheck Professional Video demonstration of how FlightCheck can effectively be used for comparing two documents. Plus, several general preflight tips. Transcript: Hello,...
Powerpoint Presentations: Adding Charts Episode 10 (of 18-part series) from Nortel LearniT on the use of Powerpoint.
Exploratory Testing Google Tech Talks March 16, 2006 Jon Bach
Power Point: Master Slides Episode 4 (of a 18-part series) This Nortel LearniT tutorial explains and reviews the master slides in Power Point.
Kodak M1063 10.3 Megapixel Digital Camera The Kodak M1063 digital camera offers many high quality features like the 3x optical zoom, 5x digital zoom, auto flash, and a clear 2.7 LCD viewing. ...
Palm Treo 600 User Review Review of the Palm Treo 600 PDA and Smartphone Rate this video or find more video product reviews in the Electronics or Cell Phones categories at ww...
Keeping Kids Healthy: Get Your Kids to Eat Right How do you get your kids to eat right when you're not around to supervise them!? Is there really a way to get them to like and choose healthy food, ...
Lec 21 | MIT 3.091 Introduction to Solid State Chemistry Engineered Glasses: Network Formers, Network Modifiers, Intermediates Properties of Silicate Glasses Metallic Glass View the complete course at: ...




Search This Site:










input string was not in a correct format

freezing headers

solpartmenu in 2.1.2

ibm db2 provider/assembly

upload page option buttons

where to store user data.

asp.net development in visual studio on vista 32bit os. (problem with dev server)

invalid length for a base-64 char array

dropdown list won't pre-populate

viewstate issue

new line in textbox

exchange server

link button event in datalist

when to programatically add columns...

cannot create database diagram while not connected to domain.

trying to import my own skin... it's not working...

my version of the kit works fine on my computer. but works incorrect when uploaded to the server.

sqlconnection parameter question

login control broke on publish to server

few questions about making role andd users admin manager

frustrated newbie needs some help getting started

automatic email on new entry to a database

known limitations? types of requirements needing core code changes?

change database name during runtime

website data source

crystal reports question

denied directory access but can still open a file from the directory

problems uploading files

i am getting a runtime error on a simple page.

how to use the master page

 
All Times Are GMT