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/12/2008 7:13:16 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 40 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
yeotumitsu@sify
Asp.Net User
Using themes - How to.4/12/2008 7:13:16 AM

0/0

Hi

I am new to this part of asp.net

I want to have let 4 labels in different color on my page. and there are some other controls for sample.

once user clicks on any of the labels, all the sample controls should get into selected label color.

This color scheme should be retained everytime user opens the page (web site).

there is no need to login. Please guide.

Thanks
 


-Manas
Sivaraman.Net
Asp.Net User
Re: Using themes - How to.4/13/2008 1:42:32 PM

0/0

try this, but this is done by javascript

<script type="text/javascript" language="javascript">

function changecolor(obj){var label1 = document.getElementById("Label1");

label1.style.backgroundColor = obj.style.backgroundColor;

}

</script>

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

<asp:Label ID="Label2" BackColor="Aqua" onclick="changecolor(this)" runat="server" Text="Label"></asp:Label>

if you want to retain the color you should store it in database, but it is challenging job to store the color in label click.

If this post helps, click "Mark as Answer"


Sivaraman Krishnan

Amanda Wang - M
Asp.Net User
Re: Using themes - How to.4/14/2008 9:59:41 AM

0/0

Hi,

You can try to use theme, define  the different  color lables with the different skinid, then when you clicks on any of the labels, you can change the labels's skinid is the same.

      lbl2.SkinID= Color.Blue;

      lbl3.SkinID= Color.Blue;

About the theme, you can refer this article: http://www.odetocode.com/Articles/423.aspx

In addition,  You also can change the lable's clolor in the codebehind:

      lbl2.BackColor= Color.Blue;

      lbl3.BackColor= Color.Blue;

Hope it helps.

If I misunderstand you, please let me know.

 


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:
PCs All-in-One Desk Reference For Dummies Authors: Mark L. Chambers, Pages: 740, Published: 2006
Doing History: Investigating with Children in Elementary and Middle Schools Authors: Linda S. Levstik, Keith C. Barton, Pages: 217, Published: 2001
Microsoft Sharepoint: Building Office 2007 Solutions in VB 2005 Authors: Scot P. Hillier, Pages: 552, Published: 2007
Using Sartre: An Analytical Introduction to Early Sartrean Themes Authors: Gregory McCulloch, Pages: 144, Published: 1994
Making Themes Work Authors: Davies, Anne Davies, Colleen Politano, Caren Cameron, Pages: 88, Published: 1993
Building a United States History Curriculum: A Guide to Using Themes and Selecting Content Authors: National Council for History Education, Pages: 0, Published: 1997
Using Themes to Enrich Language Learning Authors: Jane Jackson, Pages: 0, Published: 1996
Building a World History Curriculum: A Guide to Using Themes and Selecting Content Authors: National Council for History Education, Pages: 0, Published: 1997
Microsoft Office Word Quicksteps Authors: Marty Matthews, Pages: 256, Published: 2007
Art Therapy for Groups: A Handbook of Themes and Exercises Authors: Marian Liebmann, Pages: 349, Published: 2004

Web:
Using Themes « WordPress Codex The official WordPress codex help page for using themes.
ASP.NET QuickStart Tutorials Server-side Styles using Themes. A Theme is meant to be applied to an application after the application has been created, possibly even after the site is ...
Using Themes Significant to Children. EJ218891 - Using Themes Significant to Children. Help Tutorial Help | Tutorial Help | Tutorial Help With This Page Help With This Page ...
Walkthrough: Customizing a Web Site Using Themes in Visual Studio This walkthrough illustrates how to use themes to apply a consistent look to pages and controls in your Web site. A theme can include skin files that define ...
freshmeat.net: Themes - How to Create and Use Themes I originally intended to give instructions for creating themes for each window manager, as I've done below for using themes. When I looked through the ...
Using Themes to Customize a Site Using Themes to Customize a Site. The previous section demonstrated a variety of ways to specify styles for controls by setting style properties on controls ...
Using Themes to Customize the Desktop (GNOME 2.2 Desktop ... Using Themes to Customize the Desktop. This section describes how to use themes to customize the appearance of the desktop. ...
iDVD Theme - How to Use Themes in Apple iDVD. Video - About.com Make your DVD look professional and polished- Use iDVD to add themes to your DVD menus and subdirectories.
Teaching Theme Units- Teacher Lessons using a thematic approach Using a thematic approach is a great way to cover a variety of topics related to a major topic or unit. Pick a theme from our selection of popular themes. ...
Using Theme's in Single Applications By using themes you can without any work! You can use Apple's wonderful Cocoa APIs, and Interface Builder just as you would building an Aqua application. ...

Videos:
How to Use Apple iMovie : Using Themes in iMovie How to use themes in iMovie; learn more about video editing software in this free instructional video.
How to Design a Website Using iWeb : Using Themes in iWeb How to use themes in iWeb to publish your own personal website; learn more about website design in this free instructional video.
Themes for iPhone 2.0 firmware hey, this is a quick method on how to use themes on your iphone 2.0 firmware. it uses the cydia application which you should already have. p.s ...
Using themes in Excel 2007 A quick overview of themes in Microsoft Excel 2007.
How To Install background and theme using ipodwizard ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ██ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ██ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩ ...
How To Use Theme Builder We Will Show You How To Install And How To Use ThemeBuilder any questions? comments? or further info on it? ASK! add our myspace: http ...
WordPress: Using Tumblelog Themes to Microblog http://www.themeplayground.com/10-impressive-tumblelog-wordpress-theme-reviewed Do you want to blog, but not want to have to post long ...
How to Use Gmail Themes http://www.gmail.com Visit my website at: http://www.zachzach103.com Don't forget to rate, comment, and subscribe!
How To Make Themes Using ThemeGenCE tutorial on theme making for your ppc
How to Use iGoogle : Themes in iGoogle Learn about themes in iGoogle in order to personalize your homepage with Google Gadgets with tips from a Google products expert in this free ...




Search This Site:










create registration for other users

to create menu using data from a database table at runtime

multiple sitemaps using the sqlsitemapprovider for different sections

problems with the keys

membership and roles: different?

survey module in left pane

problerm using web parts with tabs

removing a submenu item from a menu control in code-behind?

skinning in 2.1.2

can i install directly onto remote server?

referencing class from string

treeview control does not display levels properly

custom membership provider encryptpassword(...)/decryptpassword(...) help

property windows issue

dnn4 with web farm support?

register module. how to do a cosmetic change?

help - i'm trying to exclude a configuration file from visual studio, but it keeps popping up

source code missing for all the modules

asp.net access error

login failed error on store login

mixed mode authentication = no module controls ?!?!?

dotnetnuke newby

new install: <?xml version="1.0" encoding="utf-8" ?> error

creating user in vwd-2005

rss stylesheet incomplete -

different log-in views

authoring custom controls w/ design time support

new dnn version... comments

source to subzero tasklist

hmm... htmlmodule not in module list in dnn 3.1

 
All Times Are GMT