[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Response.Redirect in a Blank Window!

Posted on 2007-08-05
3
Medium Priority
?
641 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:feesu
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 1000 total points
ID: 19634026
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
 

Author Comment

by:feesu
ID: 19636522
Thanks alot!
0
 
LVL 29

Expert Comment

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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

873 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