Response.Redirect in a Blank Window!

Posted on 2007-08-05
Last Modified: 2012-06-27
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
Question by:feesu
    LVL 29

    Accepted Solution

    Dear feesu,
    Probably you can code in this way:
    Case "stockDetails"
       Dim s as string
       s="<script language='javascript'>"
       s &="'~/desktopmodules/feed/StockDetails.aspx?r=" & GRD.DataKeys.Item(e.Item.ItemIndex)) & "');"
       s &="</script>"


    Author Comment

    Thanks alot!
    LVL 29

    Expert Comment

    by:David H.H.Lee
    Dear feesu,
    Welcome, i'm glad to help.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now