Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Change the Background image of webpage erverytime user visits.
July 28, 2013
I have a webpage in asp.net + c#, i want to Change Background Image every time user visits the webpage. I mean if "A" visits the site the background should be rose.jpg, on revisiting the same webpage the background should be "jasmine.jpg" & on 3rd time some other image.This rotation of images will be for 24 hour i.e. every time "A" visits the same webpage the background should change.I think this is ahieveable using cookie, but falling short in coding it. Please help me out it in coding this stuff.
Posted Date: July 29, 2013 Points: 20
from HTML Page body tag set as run at server.
Like: <body id="bdy1" runat="server">
and server side code is:
protected void Page_LoadComplete(object sender, EventArgs e)
Random rnd = new Random();
int i = rnd.Next(1, 5);
if you have images in database get the random image from and display this same.
Posted Date: July 30, 2013 Points: 20
you can make use of adrotator to display the image for each and every time the page renders.
Also there are many jquery plugins for image slide show.
Posted Date: August 14, 2013 Points: 20
Check the following threads
To post reply
Related Questions Related Questions
change background color of cell in Gridview programatically
Change the background color of Gridview cell programmatically
Setting the image as background for the form in widows form application
Image store to Database and restore from database and display on webpage
To save image in the SQL server.
upload image file in windows application
Image store in Database SQL SERVER
User can not select TEXT for copy paste from my .aspx page...
Image datatype quivalant in MySQL
Latest Forum Questions From The Same Category
Slash(/) in Combobox
attaching the report in the web page
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend