Hello friends,
Now i m facing a problem i want to create image sliding in ASP.NET 2.0 using timer do you have any idea how can i do it.. if yes then reply me ASAP...
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jun 29, 2012, 12:02 AM EDT
Please refer the below links
http://weblogs.asp.net/dmiyamasu/archive/2008/02/15/asp-net-ajax-slideshow-using-updatepanel-and-timer.aspx
http://aspdotnetcodebook.blogspot.in/2008/11/how-to-create-slideshow-using.html
http://ajaxslideshow.com/ajax-slideshow-using-marquee-tag.html
Thanks
Naeem KhanRank #2,072 · 698 reputationPosted Jun 29, 2012, 1:45 AM EDT
using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void SlideShowTimer_Tick(object sender, EventArgs e) { DateTime later = DateTime.Now.AddSeconds(.5); while (DateTime.Now this.SlideShowImage1.Src = RandomImageName(); this.SlideShowText.Text = this.SlideShowImage1.Src.ToString(); } private string RandomImageName() { Random rand = new Random(); int RandomInt = rand.Next(0, 5); switch (RandomInt) { case 0: return "~/Images/1.jpg"; break; case 1: return "~/Images/2.jpg"; break; case 2: return "~/Images/3.jpg"; break; default: return "~/Images/1.jpg"; break; } } } but its not working and what is SlideShowImage1 control its not coming in ASP.NET framework 2.0 please tell me the solution