suicidaltendencies
Programmer
Error:
Object reference not set to an instance of an object.
Code:
lblDetailsMore.Text =((System.Web.UI.WebControls.Label)dgEditAppointments.SelectedItem.FindControl("lblName")).Text;
ASP Page:
<asp:templatecolumn headerstyle-wrap="false" HeaderText="Customer Name" itemstyle-verticalalign="top">
<itemtemplate>
<asp:label id="lblName"><%# DataBinder.Eval(Container.DataItem, "CustomerName") %></asp:label>
</itemtemplate>
</asp:templatecolumn>
Thanks,
Harold