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

I Built a New Kind of Number Puzzle Game (And You Can Play It Free)

 For a long time, I wanted to play a mobile puzzle game that felt genuinely strategic—something that required real brainpower, skipped the a...