Rectangle 27 0

c open page in new tab asp.net?


I have disabled the popup blocker, but the problem is stil occuring

Note
Rectangle 27 0

c open page in new tab asp.net?


<script type="text/javascript">
        function SetRedirect(URI) {
           window.open(URI, "Details", "menubar=no, location=no, resizable=yes, scrollbars=yes, status=yes, width = 1200, height = 600");
        }
    </script>
MessageGateway(string.Format("../IRMQueryPO.aspx?id={0}", e.Item.Cells[2].Text));
void MessageGateway(string URI)
{
    this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
        "logCallBack", @"<script type=""text/javascript"">SetRedirect('" + URI + "');</script>");
}

And from within the code behind class just a gateway caller to this function like:

And that's it, you may call this gateway with your stuff as normally you do,

Sometimes it works for me to just declare whatever I would invoke dynamically from the administrated code into a javascript function and just call it from within with the RegisterClientScriptBlock method in ClientScript class:

You can try tweeking the "target" parameter with "_blank" in order to open a tab instead a window, it's just a matter of the flavor your solution points in.

Note