How am I be able to load the entire page before issuing an alert window using javascript.
<asp:Content ID="cpBody" ContentPlaceHolderID="cpBody" Runat="Server">
<%
if(Session["userid"] == null)
{
string strAlert = string.Empty;
strAlert = "<script type='text/javascript'>alert('Unable to access page, please login.');</script>";
Response.Write(strAlert);
}
%>
</asp:Content>