How can i set the display property to block in the code behind?
pnl.Attrib
Try this :
pnl.Style.Add("display", "block");