Page.ClientScript.RegisterStartupScript(
Me.GetType(), "print_script", str)End Sub
Replace the green items with your own variables. This script won't screw up your CSS formatting like some others I've tried, and naming the window allows you to close it programmatically.
OnClientClick
="javascript:windowname.close();"Wow, its like being in some kind of Windows environment or something...
No comments:
Post a Comment