Hi All,
whn i put this script in page load event, it works properly and display popup. but when i put this script in a user define function and call from different page/file it wont work why?? it goes thru the line and do nothn.
public void dispAlert()
{
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "msg", "alert('fail to log in');window.location.href('./login.aspx');", true);
}