Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
based on background color
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
syedmuktha
New Member
Join Date:
Jul 2007
Posts:
2
#1
based on background color
Jul 4 '07, 11:36 AM
hi every body,. i want to change my background color based on differend user while login for my web site. if u have any idea, pls reply me asap.
regards,
-syed.
radcaesar
Recognized Expert
Contributor
Join Date:
Sep 2006
Posts:
759
#2
Jul 4 '07, 11:54 AM
Use random numbers to change the value of the color code.
To generate those
http://weblogs.asp.net/erobillard/archive/2004/05/06/Random-Numbers-in-C_2300_.aspx
:)
Comment
Post
Cancel
shweta123
Recognized Expert
Contributor
Join Date:
Nov 2006
Posts:
692
#3
Jul 4 '07, 01:36 PM
Hi,
You can get the Login name using Request.Form() in javascript function and set document.bgcolo r = value depending upon Loginname
Comment
Post
Cancel
Frinavale
Recognized Expert
Expert
Join Date:
Oct 2006
Posts:
9749
#4
Jul 4 '07, 03:49 PM
You could make couple of different CSS themes that set the background colour and then depending on the user's login set the style to that CSS class.
Or you could store the background colours into a database and when the user logs in grab that value and use the method Shweta123 has suggested...
There are many ways to solve this....
What have you tried so far?
-Frinny
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment