Solved

How to trap click event on repeater row.

Posted on 2012-03-27
2
344 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
Comment Utility
0
 

Author Closing Comment

by:searchsanjaysharma
Comment Utility
ok
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

13 Experts available now in Live!

Get 1:1 Help Now