Friday, 30 May 2014

Redirect to another page after few second

No comments
in cs

protected void Page_Load(object sender, EventArgs e)
    {
        Response.AddHeader("REFRESH", "2;URL=login.aspx");
    }

or

 ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "ScriptKey", "alert('ok');window.location='Transfer.aspx'; ", true);

mouse hover and out on linkbutton

 LinkButton1.Attributes.Add("onmouseover", "this.style.color=\"green\"");
 LinkButton1.Attributes.Add("onmouseout", "this.style.color=\"black\"");