0

I'm trying to put write a javascript function behind a button so that when I press the button it will open a new tab and calls on the report_handler which opens the report.

My code behind this button currently is;

<dx:ASPxButton ID="btn_Print" runat="server" Text="Print" UseSubmitBehavior="false" AutoPostBack="false" RenderMode="Link" OnClick="btn_Print_Click">
<ClientSideEvents  Click="function(s, e) {'javascript:window.open(Report_Handler.ashx?')}"  /></dx:ASPxButton>

However this doesn't seem to be doing the trick.

Any suggestions would be greatly appreciated.

Thanks

Chrislaar123
  • 323
  • 2
  • 6
  • 17

1 Answers1

1

Hope this will help you:

<ClientSideEvents  Click="javascript:window.open('Report_Handler.ashx?','_blank');"/>
SoftSan
  • 2,482
  • 3
  • 23
  • 54