What I am trying to accomplish is If Item A = "something" then show the print button else do not show.
I am currently looping through the datatable verifying if a certain code exsits then either show or hide a button. Below is what I have came up with so far but I am getting "Object reference not set to an instance of an object."
Does any one have a working example or some feed back on my code below to get this working?
Thanks for the help...
If GetCartItems.Rows(i).Item("D") = "D6Z" Then
Dim PH As PlaceHolder = CType(RadListCart.FindControl("PlaceHolder1"), PlaceHolder)
Dim Imageb As ImageButton = CType(PH.FindControl("PrintButton2407"), ImageButton)
Imageb.Visible = True