Results 1 to 2 of 2

Thread: How to open a new page from datagridbutton

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    How to open a new page from datagridbutton

    I have a datagrid button column where I take care of its event by using the ItemCommand event. When the event triggers I want to open a new webpage and send along some parameters, like:

    VB Code:
    1. Private Sub OnDataGridCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgPlanned.ItemCommand, results2.ItemCommand
    2.         If e.CommandName.ToString = "Info" Then
    3.             Response.Redirect("Info.aspx?ID=" & e.Item.Cells(0).Text)
    4.         End If
    5.     End Sub

    How can I modify this code so I can open a small window as a new?

    kind regards
    Henrik

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    I don't think it can be done without using a Javascript or VBScript client-side script.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width