Label compname = DetailsView1.Rows[0].Cells[1].FindControl("complbl") as Label; comp = compname.Text;
<asp:TemplateField HeaderText="Company Name"> <itemtemplate> <asp:Label ID="complbl" runat = "server"> </itemtemplate>
compname = (Label)DetailsView1.Rows[0].Cells[1].FindControl("complbl");
label lbl1 = (Label)DetailsView1.Rows[0].Cells[1].FindControl("complbl"); lable1.Text = lbl1.Text ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)