I am trying to create if condition, where if variable 'ten' is equal to null, then don't show the button on the page load, otherwise, show the button.
I have tested variable 'ten' and it shows no data, hence the button 6, should not be visible on the client-side.
However, button 6 is visible on the client-side, which is incorrect logic:
protected void Page_Load(object sender, EventArgs e)
{
string eight = Queries.day8();
string ten = Queries.day10();
string twelth = Queries.day12();
Label1.Text = Server.HtmlEncode(ten);
Button1.Visible = false;
Button2.Visible = false;
Button3.Visible = false;
Button4.Visible = false;
Button5.Visible = false;
Button6.Visible = false;
Button7.Visible = false;
Label2.Visible = false;
if (!IsPostBack)
...
Go to the complete details ...