in datalist templatefield, i want to bind an imagebutton's visible property. the scenario is .. it is a picture comments page like one in facebook. if its your own comment, the delete button is shown, otherwise not. the problem is .. for the imagebutton i want to set visible = false, if the user logged in is the same user as the one who commented. how can i do that ? please help
currently im using this code on datalist databind event. but the label is returned as null
public bool set_visibility()
Label lb = DataList3.FindControl("Label7") as Label;
if (lb.Text == Session["user_id"].ToString())
findcontrol dosent return the control.
View Complete Post