Monday, July 16, 2007

The BEST vb popup script that passes a querystring

Dim key As String = GridView.SelectedValue.ToString() Dim str As String = ""

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:

Locations of visitors to this page
DROP ME A MSG :D