I am unable to open the page in a new window when i click on the image button
CAn u tell me how to make the current page open in new window

<ItemTemplate>
<asp:ImageButton runat="server" ID="ImgPreviewBtn" Height="18px" Width="18px" OnCommand="onSelectAttachment"  CommandName="Preview"
 CommandArgument='<%#Eval("QUOTATION_CODE") +","+ Eval("SUPPLIER") %>' ImageUrl="~/images/preview.gif" CausesValidation="false"></asp:ImageButton>
</ItemTemplate>
if (e.CommandName == "Preview")
        {

            string value = e.CommandArgument.ToString();
            string[] arInfo = new string[4];
            char[] splitter = { ',' };
            arInfo = value.Split(splitter);
            Session["RFQCODE"] = lblReqNo.Text;
            Session["QTCODE"] = arInfo[0].ToString();
            Session["SUPLCODE"] = arInfo[1].ToString();
            // Session["VESSELCODE"] = lblVessel.tex;

            ResponseHelper.Redirect("POPreview.aspx?RFQCODE='" + lblReqNo.Text + "'", "_Blank", "");

            //Response.Redirect("POPreview.aspx");
        }

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.