8
Answers

how to rotate image in asp.net

Photo of jeevan mummadi

jeevan mummadi

17y
16.7k
1
plz send me any sample code to rotate image in asp.net application

Answers (8)

0
Photo of Manish Dwivedi
272 6.7k 2.3m 17y
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
Photo of jeevan mummadi
NA 157 0 17y

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
Photo of jeevan mummadi
NA 157 0 17y

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...........

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
Photo of Manish Dwivedi
272 6.7k 2.3m 17y
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
Photo of jeevan mummadi
NA 157 0 17y

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
Photo of Manish Dwivedi
272 6.7k 2.3m 17y

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!! 

0
Photo of Niradhip Chakraborty
NA 4.6k 825.2k 17y