Solved

How to trap click event on repeater row.

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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 …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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