Solved

How to trap click event on repeater row.

Posted on 2012-03-27
2
362 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

23 Experts available now in Live!

Get 1:1 Help Now