> 
> Here is the script that I am using for opening a new tab and it's working without using an update panel:
> 
> 
> 

```
<script type="text/javascript">
    function openInNewTab() {
        window.document.forms[0].target = '_blank'; 
        setTimeout(function () { window.document.forms[0].target = ''; }, 0);
    }

```

> 
> This is my **.aspx** page: and i want to use it with update panel please help
> 
> 
> 

```
<asp:ScriptManager ID="ScriptManager1" runat="server"
</asp:ScriptManager>
<asp:UpdatePanel runat="server">
    <ContentTemplate>
        <asp:Button ID="btnAssign" runat="server" Text="Assign" OnClientClick="SetTarget();" OnClick="btnAssign_Click"/>
     </ContentTemplate>
</asp:UpdatePanel >

```

> 
> i want to use it with update panel please help me if there any solution 
> 
> 
>