Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am using Datagrid to display Data from Access DB. Now i have a hyperlink in template field of Datagrid, when user click on it, Iframe should open and Detailed data should be display in it. I need to use fancy box Script to open an Iframe,

here is my code of DataGrid
<asp:GridView ID="GridView1" runat="server" EnableCallBack="false" CellPadding="4" EnableSortingAndPagingCallbacks="false" ForeColor="#333333" with="100%" Font-Bold="True"> 
<rowstyle backcolor="#F7F6F3" forecolor="#333333" />
<columns>
<asp:BoundField DataField="Faculty" HeaderText="Faculty" ReadOnly="True" SortExpression="Faculty" /> 
<asp:BoundField DataField="Qualification" HeaderText="Qualification" SortExpression="Qualification" /> 
<asp:BoundField DataField="Designation" HeaderText="Designation" SortExpression="Designation" /> 
<asp:BoundField DataField="Experience" HeaderText="Experience (Yrs.)" SortExpression="Experience" /> 
<asp:BoundField DataField="Srno" HeaderText="Sr.No." SortExpression="Srno" Visible="false" />
<asp:TemplateField HeaderText="Profile"> 
<itemtemplate>
<a id="various3"> <asp:HyperLink ID="s" runat="server" NavigateUrl='<%# Eval("Srno", "Details.aspx?Faculty_No={0}") %>' Target="_new" Text="View"></a> 
</itemtemplate> 
</columns>
<footerstyle backcolor="#5D7B9D" font-bold="True" forecolor="White" /> 
<pagerstyle backcolor="#284775" forecolor="White" horizontalalign="Center" /> 
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> 
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 
<editrowstyle backcolor="#999999" /> 
<alternatingrowstyle backcolor="White" forecolor="#284775" /> 
How should I pass a Style class to hyperlink field, in order to display fancy Iframe?
I am using .net 3.5.

Thanks in advance.

Prathamesh Pitale
*REMOVED MAIL*
Posted
Updated 13-Dec-10 6:32am
v3
Comments
JF2015 13-Dec-10 11:01am    
Editd to remove mail address. Never post you mail address to avoid being spammed.
Abdul Quader Mamun 13-Dec-10 12:32pm    
Spelling check.

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