Navigating to a project document from a LinkButton
<p>I am trying to get an excel file to popup on a page in a new window when a user clicks an asp:linkbutton on a webform. I am setting it up to use the OnClick function and in the code behind I do a respond.redirect to the location of the excel file in the project. You can see this in the code below. For some reason it is not working, I get a blank page that pops up in my browser. Is this even best practices? I could also direct the link to shared network drive where there excel files can be stored but that just seems a little too complicated. </p>

<pre><code>&lt;asp:LinkButton ID="btnCBFormat" runat="server" Text="CB Format Example" OnClick="btnCBFormat_Click" Target="_blank" /&gt;
&lt;asp:LinkButton ID="btnMBFormat" runat="server" Text="MB Format Example" OnClick="btnMBFormat_Click" Target="_blank" /&gt;

        protected void btnCBFormat_Click(object sender, EventArgs e)
        {
            Response.Redirect("//Chargebacks/Formats/CBFormat.xsl");
        }

        protected void btnMBFormat_Click(object sender, EventArgs e)
        {
            Response.Redirect("//Chargebacks/Formats/MBFormat.xls");
        }
</code></pre>
