Friday, September 30, 2011
HyperLinkink in Gridview
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
Height="1px" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"
Width="700px">
<Columns>
<asp:BoundField DataField="Designation" HeaderText="Designation">
</asp:BoundField>
<asp:BoundField DataField="ContactNo" HeaderText="Contact No.">
<ItemStyle Width="100px" />
<HeaderStyle Width="100px" />
</asp:BoundField>
<asp:HyperLinkField DataNavigateUrlFields="CandidateAppId" DataNavigateUrlFormatString="~/Salary/frmsalary.aspx?Id={0}"
HeaderText="Attach" Text="View">
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle Width="50px" />
</asp:HyperLinkField>
<asp:TemplateField HeaderText="View">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle HorizontalAlign="Center" Width="50px" />
<ItemTemplate>
<asp:ImageButton ID="ImageView" runat="server" ImageUrl="~/Image/img.png"
OnClick="ImageView_Click" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Delete">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle Width="50px" />
<ItemTemplate>
<asp:ImageButton ID="ImgDelete" runat="server" ImageUrl="~/Image/img.png"
OnClick="ImgDelete_Click" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>