how to display none through code behind

If your div as follows
 <div id="login_div" runat="server">
then on the code behind, apply style as follows
login_div.Style.Add("display", "none");