Click here to Skip to main content
15,920,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to navigate from grid view control, please reply me
Posted
Comments
Karthik_Mahalingam 22-Jan-14 23:41pm    
Please add more info..
member1431 22-Jan-14 23:53pm    
i added some data from sql server 2008, some data means: for example employee details with image
and i selected image column in grid view control, here displaying images properly but i want that image navigation(.aspx page) seperately please reply me karthik
Karthik_Mahalingam 22-Jan-14 23:54pm    
ok fine..
on click of the image u need to navigate to some other page ??
member1431 22-Jan-14 23:55pm    
yes karthik
Karthik_Mahalingam 23-Jan-14 0:51am    
what you have tried ?
can u post your code, so that i can give u suggestion on ur code only..

Try some thing like this

C#
<asp:templatefield headertext="Employee Image" xmlns:asp="#unknown">
       <itemtemplate>
           <a href="Default.aspx?Id='<%# Eval("empid") %>">
            <asp:image id="EmpImg" width="40" height="40" runat="server" />
           </a>
       </itemtemplate>
  </asp:templatefield>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900