Click here to Skip to main content
15,892,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have lot of images in gridview how cnn i implement that one in lightbox can any body know please help me...?
Posted

This[^] could help.
 
Share this answer
 
Comments
Rupa1 2-Feb-11 1:19am    
sir i have one doubt if it is in gridview how can we give <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a> for image box we can give like but in case of gridview sir.................
Ankur\m/ 2-Feb-11 1:34am    
You can add an ImageField to a GridView. Search for more details.
Rupa1 2-Feb-11 1:56am    
sir i did like this where i did mistake <asp:GridView ID="dgitem" runat="server" AutoGenerateColumns="False"
onselectedindexchanged="dgitem_SelectedIndexChanged">
<columns>
<asp:BoundField DataField="intdanceId" HeaderText="DanceId"
InsertVisible="False" ReadOnly="True" SortExpression="ID" />
<asp:BoundField DataField="strdanceText" HeaderText="danceText"
InsertVisible="False" ReadOnly="True" SortExpression="ID" />
<asp:TemplateField HeaderText="Image">
<itemtemplate>
<asp:Image ID="Image1" runat="server" Height="28px"
ImageUrl='<%# "DanceHandler.ashx?intdanceId=" + Eval("intdanceId")%>'
Width="23px" rel="lightbox[roadtrip1]" />

</asp:TemplateField>
<asp:CommandField HeaderText="Select" ShowSelectButton="True" />

</asp:GridView>
Rupa1 2-Feb-11 2:19am    
sir ca u see this link(http://www.bing.com/images/search?q=images+&view=large&FORM=VBCIRL) exact i want to implement like this in asp.net
OP wrote: "sir ca u see this link(http://www.bing.com/images/search?q=images+&view=large&FORM=VBCIRL) exact i want to implement like this in asp.net"

Why don't you try searching first. So is a common scenario and there are so many examples for the same on the web.
Well, here you go - Google search for - bing image search asp.net[^]
 
Share this answer
 

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