Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SQL
If e.Item.ItemType <> ListItemType.Header And ListItemType.Footer Then
               lblCopName = e.Item.FindControl("lblCopName")
               If sPacsName = lblCopName.Text Then
                   lblCopName.Text = '              '
               Else
                   sPacsName = lblCopName.Text
               End If
           End If
       Catch ex As Exception
           lblError.Text = ex.Message
       End Try
Posted
Updated 10-Nov-14 19:57pm
v3

1 solution

your Lable control 'lblCopName' is NULL , that's why it's through an error.

So please check your lbl id which you pass in to FindControl Method.


Thanks
AARIF SHAIKH
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900