0
Hi Jeevan,
Images should be with in the application folder. Put all images with in the folder which is within your application.
Try this, after that u are able to rotate the images.
0
thank u james,
plz open this link
http://hyderabadunplug.com/
in this link one globe rotate so i want sample code how to rotate the globe.
how to use flash player in asp.net
plz help me...
0
thank u manish,
i did ur code also for adrotator,i created table like this
table design:
orderid int 4
alternatetext varchar 50
imageurl varchar 200
navigateurl varchar 100
table data:
1 image1 C:\Documents and Settings\User\My Documents\My Pictures\earthday08.gif www.asp.net
like that ...
and i run the application but image was not appered in application
plz help me...........
0
hi manish,
This is Thiyagu.I'm new to this community and also to .NET
How can I skill me up in .NET
can u help me?
0
Hi,
Means u only want to rotate the single image then this code is not for your problem. James has given u one reference check on that.
Hope, it will help you.
0
hi manish,
why ru using database connection in above program...
what is the use?
i want rotate the image in my application for example one global.jpg image is there in my application,i rotate that image yar...
0
Hi,
You can do this by using the Ajax Rotator. or by using this.
Code for the aspx page:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
</asp:UpdatePanel>
</div>
<asp:AdRotator ID="AdRotator1" runat="server" />
<asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick1" Interval="5000"></asp:Timer>
Code for the cs Page:
protected void Page_Load(object sender, EventArgs e)
{
AdRotator1.DataSource = FetchAdsFromDB();
AdRotator1.DataBind();
}
private DataTable FetchAdsFromDB()
{
string sql = "select * from AddTAble";
SqlDataAdapter da = new SqlDataAdapter(sql, "Server=.; Uid=sa; pwd=; Initial Catalog=Mydata");
DataTable dt = new DataTable();
da.Fill(dt);
return dt;
}
protected void Timer1_Tick1(object sender, EventArgs e)
{
AdRotator1.DataSource = FetchAdsFromDB();
AdRotator1.DataBind();
}
Happy Coding!!