Anti_BaiRusT 0 Report post Posted April 15, 2008 Salam...aku skung kena wat .net 2003... leceh gakkahaKsade sesape yg tahu nak find control lam Data Grid?Private Sub dgSenarai_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgSenarai.ItemDataBound Dim a As Label 'Dim a As New Label a= CType(e.Item.FindControl("lblId"), Label) 'CType(dgSenarai.FindControl("lblId"), Label).Text 'a.Text = "ayam" Response.Write(a.Text) lblId tuh betul ade je lam itemtemplet akucena ye?yg nie yg aku test... tapi kuar error Object reference not set to an instance of an object. Line 130: Response.Write(a.Text) Salam...aku skung kena wat .net 2003... leceh gakkahaKsade sesape yg tahu nak find control lam Data Grid?Private Sub dgSenarai_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgSenarai.ItemDataBound Dim a As Label 'Dim a As New Label a= CType(e.Item.FindControl("lblId"), Label) 'CType(dgSenarai.FindControl("lblId"), Label).Text 'a.Text = "ayam" Response.Write(a.Text) lblId tuh betul ade je lam itemtemplet akucena ye?yg nie yg aku test... tapi kuar error Object reference not set to an instance of an object. Line 130: Response.Write(a.Text) erkkkokies aku dah dapat dah... Quote Share this post Link to post Share on other sites