-
Response.Redirect()
How do I open a webform in a new browser without navigating from the current
webform?
Private Sub DataGrid1_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
Handles DataGrid1.EditCommand
If e.CommandSource.Text = "Edit" Then
Dim sID As String = "?SampleID=" & DataGrid1.Items(e.Item.DataSetIndex).Cells(2).Text
'This will open it in the current browser
Response.Redirect("Sample.aspx" & sID)
'How do I open it in a NEW browser?
End If
Thanks
Michael
-
Re: Response.Redirect()
Have you tried posting back to the current webform itself with a flag to
indicate opening of a new webform. Check for that flag and then Use javascript
'window.open()' method to open new browser with Sample.aspx URL .(use Onload
event(clientside))
"michael" <mmayfield_NOSPAM@houston.rr.com> wrote:
>
>How do I open a webform in a new browser without navigating from the current
>webform?
>
>Private Sub DataGrid1_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
>Handles DataGrid1.EditCommand
>
> If e.CommandSource.Text = "Edit" Then
> Dim sID As String = "?SampleID=" & DataGrid1.Items(e.Item.DataSetIndex).Cells(2).Text
>
> 'This will open it in the current browser
> Response.Redirect("Sample.aspx" & sID)
>
> 'How do I open it in a NEW browser?
>
> End If
>
>Thanks
>Michael
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks