Response.Redirect in a Blank Window!

Experts,
I need to modify this code to open in a blank window, how may i?

Protected Sub grd_ItemCommand(ByVal sender As Object, ByVal e As C1.Web.C1WebGrid.C1CommandEventArgs) Handles GRD.ItemCommand
        Select Case e.CommandName
            Case "stockDetails"
                Response.Redirect("~/desktopmodules/feed/StockDetails.aspx?r=" & GRD.DataKeys.Item(e.Item.ItemIndex))
        End Select
End Sub
feesuAsked:
Who is Participating?
 
David H.H.LeeConnect With a Mentor Commented:
Dear feesu,
Probably you can code in this way:
...
Case "stockDetails"
   Dim s as string
   s="<script language='javascript'>"
   s &="window.open('~/desktopmodules/feed/StockDetails.aspx?r=" & GRD.DataKeys.Item(e.Item.ItemIndex)) & "');"
   s &="</script>"
   Page.RegisterStartupscript("loadwin",s)

0
 
feesuAuthor Commented:
Thanks alot!
0
 
David H.H.LeeCommented:
Dear feesu,
Welcome, i'm glad to help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.