<asp:TemplateField> <ItemTemplate> <table> <tr> <td rowspan="4"> </td> <td><a href="offerdetails.aspx" style="text-decoration: blink"> <asp:Label ID="Label1" runat="server" Text='<%# Bind("AdTitle") %>'></asp:Label></a></td> <td> </td> </tr>
Label lbl = gridview.Rows[index].FindControl("Label1") as Label; Session["ssnLabelText"] = lbl.Text;
gridviewrow row=gridview1.rows[1] as gridviewrow; lable lbl=row.fincontrol("Label1"); Here the Label1 is the control in your gridveiw
FindControl
Label
ItemTemplate
Label lbltxt=(Label)gridview.Rows[index].FindControl("Label1"); Response.Write(lbltxt.Text)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)