Solved

How to trap click event on repeater row.

Posted on 2012-03-27
2
371 Views
Last Modified: 2012-04-12
I have these 2 codes in two pages.
a.aspx
<asp:Repeater ID="repeatimages" runat="server" >
    <HeaderTemplate>
            <table border="1" width="100%">
            <tr>
                <th>Product Id</th>
                <th>Name</th>
                <th>Image</th>
            </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
        <td><asp:Label ID="lbl" runat="server" Text='<%#Eval("pid") %>'></asp:Label> </td>
         <td><%#Eval("pname")%> </td>
        <td>
        <img  src="images/<%# Eval("imagepath") %>" alt="" />
        </td>
        </tr>
        </ItemTemplate>
</asp:Repeater>

b.aspx
<asp:Repeater ID="repeatimages" runat="server" >
    <HeaderTemplate>
            <table border="1" width="100%">
            <tr>
                <th>FabricID</th>
                <th>Name</th>
                <th>Image</th>
            </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
        <td><asp:Label ID="lbl" runat="server" Text='<%#Eval("fid") %>'></asp:Label> </td>
         <td><%#Eval("fname")%> </td>
        <td>
        <img  src="images/<%# Eval("imagepath") %>" alt="" />
        </td>
        </tr>
        </ItemTemplate>
</asp:Repeater>

I want to achieve 3 tasks.
1. How to pick the details of the row in repeater where user click the image from a.aspx
2. It control should move to b.aspx.
3. How to pick the details of the row in repeater where user click the image from b.aspx
4.The click should move to c.aspx where
<img id="p1" src=""> //Image from a.aspx should come.
<img id="f1" src=""> //Image from b.aspx should come.
0
Comment
Question by:searchsanjaysharma
2 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37775241
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 37841203
ok
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now