Professional Web Applications Themes

New window from LinkButton? - ASP.NET General

I need to be call up a new page from a hyperlink in a DataGrid. Unfortunately, I'm not allowed to pass any querystring values so I decided to use a TemplateColumn containing a LinkButton instead of using a HyperLinkColumn. Using the LinkButton, I can set session variables that the new page will use at startup. What I can't figure out is to open a new window. Any ideas? -- There are 10 kinds of people. Those who understand binary and those who don't. http://code.acadx.com...

  1. #1

    Default New window from LinkButton?

    I need to be call up a new page from a hyperlink in a DataGrid.
    Unfortunately, I'm not allowed to pass any querystring values so I
    decided to use a TemplateColumn containing a LinkButton instead of using
    a HyperLinkColumn.

    Using the LinkButton, I can set session variables that the new page will
    use at startup. What I can't figure out is to open a new window.

    Any ideas?

    --
    There are 10 kinds of people. Those who understand binary and those who
    don't.

    http://code.acadx.com


    Frank Guest

  2. #2

    Default Re: New window from LinkButton?

    for the linkbutton, add an attribute to the onclick event, calling a
    Javascript Open Window function
    LinkButton.attributes("Onclick")="WindowOpenFuncti ongoesHere();"


    David Wier
    http://aspnet101.com
    http://aspexpress.com


    "Frank Oquendo" <com> wrote in message
    news:%phx.gbl... 


    David Guest

  3. #3

    Default Re: New window from LinkButton?

    David Wier wrote: 

    I've got that in my code now but it doesn't seem to be working. I think
    the postback is interfering somehow. The original page reloads but the
    new one never opens.

    --
    There are 10 kinds of people. Those who understand binary and those who
    don't.

    http://code.acadx.com


    Frank Guest

Similar Threads

  1. Linkbutton does not look like a linkbutton
    By Sathyaish in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: September 8th, 08:44 AM
  2. LinkButton
    By Hugo Flores in forum ASP.NET General
    Replies: 4
    Last Post: July 4th, 08:01 PM
  3. Format of LinkButton..?
    By Onur Bozkurt in forum ASP.NET General
    Replies: 1
    Last Post: July 1st, 07:15 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139