open a new page in same window on rotator item click

2 posts, 1 answers
  1. saratchand
    saratchand avatar
    12 posts
    Member since:
    Oct 2010

    Posted 23 Nov 2010 Link to this post

    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.
     
  2. Answer
    Pero
    Admin
    Pero avatar
    1156 posts

    Posted 26 Nov 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top