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: 4/25/2007 1:09:03 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
jamest85
Asp.Net User
Change the Menu button color after clicked, and stay there until other button be clicked4/25/2007 1:09:03 AM

0/0

Hi:

 I am using a Menu control to build serveral buttons, (they stays in Master page), they works ok, when the mouse cursor move above the buttons, they can change the colour.

 My problem is: how can I make the button's background colour stay there until I clicked another button.

Here is my start code I can catch the value of the button has been clicked:

myStr = Menu1.SelectedValue()

But I don't know how to make the button colour stay there.

Thanks a lot

James

 

 

Zhao Ji Ma - MS
Asp.Net User
Re: Change the Menu button color after clicked, and stay there until other button be clicked4/27/2007 11:47:19 AM

0/0

Hi James,

The ASP.NET Menu StaticSelectedStyle property is used to control the appearance of the menu item selected by the user in a static menu.

            <asp:Menu ID="Menu1" runat="server">
                <StaticSelectedStyle BackColor="LightBlue" BorderStyle="Solid" BorderColor="Black"
                    BorderWidth="1" />
                <Items>
                    <asp:MenuItem Text="New Item" Value="New Item"></asp:MenuItem>
                    <asp:MenuItem Text="New Item2" Value="New Item2"></asp:MenuItem>
                </Items>
            </asp:Menu>


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
JavaScript Goodies: More than 250,000 people have learned JavaScript from Joe Burns and his HTML Goodies Web site! Authors: Joe Burns, Andree Growney, Pages: 356, Published: 1999
Photoshop Elements 2: For Windows and Macintosh Authors: Craig Hoeschen, Pam Pfiffner, Christopher Dahl, Pages: 403, Published: 2003
CHI 2005: Technology, Safety, Community : Conference on Human Factors in Computing Systems, Portland, Oregon, USA, April 2-7, 2005 : Conference Proceedings Authors: Association for Computing Machinery (Nueva York). Special Interest Group on Computer-Human Interaction, Computer-Human Interfaces Conference (2005 : Portland), SIGCHI (Group : U.S.), Association for Computing Machinery (New York). Special Interest Group on Computer, Wendy Kellogg, Association for Computing Machin, systems Conference on human factors in c, Human Interaction, Pages: 933, Published: 2005

Web:
JavaScript Goodies Click button, change color. New Window Button Button opens new browser ... When words appear in status bar, they tend to stay there until new words are ...
Win xp slow load icons start button not there Some of the icons will change to picture icons while others stay in a generic ... Select My Computer icon and right click on it. 2.On the menu select the ...
Change The Text On The Start Menu Button - Video If you're interested, click the "thumbs up" button and I make a vid explaining how to fix it. .... Is there any way to change the COLOR of the start button? ...
123 Flash Chat Client Help For The End Chat Users Click any username you like, the background color of the chosen username will change and a mini menu popup with "private" button in it. (Click "All Users" ...
adrianTNT.com - Flat Menu XML You can change buttons colors, button text, links, target frame, etc. ... type, action type when a button is clicked. Default is set to "getURL", ...
Array/Band Analyzer To set the pixel level click Set color button. The cursor over the image ... After calculating the statistical data you can use the Data menu to save or ...
Flash and Video File menu > New — select “Flash Document.” 2. Change the Stage size to 600 pixels wide and 400 pixels high. After you click the Size button in the ...
luxury in a farm: stay on a farm, short breaks lake district ... To change the colour of the text, click on the button to the right of Text ... Untick the small box nearly at the bottom Allow documents to use other fonts ...
Windows « BeanWorks (Note: this won’t change the menu text size in Firefox (version 2.0.0.11), .... Click on the “Color” button and select a different color, if desired. ...
Design a mirror website navigation menu Now don’t click anywhere and don’t select any other tool. It may seem that you have just one button on the scene right now, but there are two. ...

Videos:
Randy Pausch - Really Achieving Your Childhood Dreams Randy Pausch's Last Lecture with English and German subtitles by Friederike Sophie Brand, Spanish subtitles by Carlos Velásquez and Ezequiel Aranda, ...
Fight Club-drawn on ms paint Every one please show ur mates and leave comments, i want some advice, critisism, jst tell me wut u thot this is an amazing video fo me drawing a fi...
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










visual studio 2003 and iis settings?

show user info immediately after logon

system.data.odbc in webmatrix

ok, this one has me stumped... unable to debug custom module - server error

regarding from authentication

2.0 - dynamically loading controls problem in desktopcontrols.createchildcontrols

closing a window

session variables

math in french??

custom task assembly not being released after build

can someone tell me why this doesn't work?

!! simple for someone??? datatable manipulation

hosted sites with helm

logging application block for vb project

master pages +forms

cannot reference page/usercontrol class from code?

login page help

need help converting existing page to content page

showing different sections of the site.map

loading image from an sql database

random row from sql server database

strange and annoying problem

path.getfullpath method

connection string

treview page without postback

integrating aspx files into legacy asp application

display new page after logout?

constants vs resoucre file

another www.love2trade.com code snippet (for db backup)

users having to re-login too often

 
All Times Are GMT