Solved

How to trap click event on repeater row.

Posted on 2012-03-27
2
430 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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