This is a migrated thread and some comments may be shown as answers.

open a new page in same window on rotator item click

1 Answer 57 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
saratchand
Top achievements
Rank 2
saratchand asked on 23 Nov 2010, 01:01 PM
Hi,
I'm using rad rotator ,I put latest top 10 images in rotator by getting their names from database  where images are stored in a  folder.
here is code for above procedure

<telerik:RadRotator ID="RadRotator1" runat="server" Height="120px" Width="680px" ScrollDuration="500" ScrollDirection="Right"
  FrameDuration="1500" ItemWidth="120px" ItemHeight="100px" RotatorType="AutomaticAdvance" DataSourceID="SqlDataSource1">
   <ItemTemplate>
     <asp:Image ID="image1" runat="server" CssClass="image" ImageAlign="left" Visible="true"
            ImageUrl='<%# String.Format("~/upload data/movies/{0}", DataBinder.Eval(Container.DataItem, "imagename")) %>' />
                                     
   </ItemTemplate>
</telerik:RadRotator>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:cinema mistakesConnectionString %>"
       SelectCommand="SELECT TOP 10 [imagename] FROM [movie] ORDER BY [mid] DESC"></asp:SqlDataSource>



Now , when a user click on rotating image then it should redirect to new page where some details of that image are displayed.
Please tell me that "on clicking a rotating item it should redirect to new page along by passing image name as id and by using that id, I Can retrieve the details belonging to id from database".
  Tell me how to pass an id on item click from that page to other page.
For this i don't know what to use please guide me.

Help me out of this.
 

1 Answer, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 26 Nov 2010, 09:25 AM
Hi Saratchand,

You could use the query string to pass the desired parameters. I have attached a sample project demonstrating this.

Best wishes,
Pero
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Rotator
Asked by
saratchand
Top achievements
Rank 2
Answers by
Pero
Telerik team
Share this question
or