Command Button to Open Window
- From: "Softworks" <subscriber@xxxxxxxxxxxxxx>
- Date: Thu, 11 Jan 2007 15:46:57 -0600
I have a GridView that contains an command button in one of the columns.
The code-behind does some processing of code and then needs to open a
window.
It looks like the postback fires before the PopUpWindow. Is there anyway
around this?
Private Sub dgJobs_CancelCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
dgJobs.CancelCommand
-- code here to do some data manipulation
Dim url As String = "Viewer.aspx?docName=" & JobID
PopUpWindow(Url)
End Sub
Private Sub PopupWindow(ByVal url As String)
Dim script As String = String.Format("<script
language='javascript'>window.open('{0}', '_blank');</script>", url)
RegisterStartupScript("OpenWindow", script)
End Sub
Thanks in advance!
Tina
.
- Follow-Ups:
- Re: Command Button to Open Window
- From: Teemu Keiski
- Re: Command Button to Open Window
- Prev by Date: updating a row in datagrid..
- Next by Date: RE: File Upload control not working in Datagrid
- Previous by thread: updating a row in datagrid..
- Next by thread: Re: Command Button to Open Window
- Index(es):
Loading