Monday, March 7, 2011

Open new window when button click within updatepanel


protected void printbtn_Click(object sender, ImageClickEventArgs e)
{
 StringBuilder sb = new StringBuilder();
 sb.Append("<script>");
 sb.Append("window.open('"+path+"', '', '');");
 sb.Append("</script>")
 ScriptManager.RegisterStartupScript(this, this.Page.GetType(), "test", sb.ToString(), false);
}
 

No comments:

Post a Comment

TinyMCE Insert/Edit link not editable

 To fix this add  e.stopImmediatePropagation()  as below. $(document).on('focusin', function (e) {             if ($(e.target).close...