How to open a PDF File

  • Thread starter Thread starter Bruno Alexandre
  • Start date Start date
B

Bruno Alexandre

Hi guys,

I'm using:

<asp:LinkButton runat="server" ID="LinkButton1" Text="Ydelsestabel - Konto
med udskudt første betaling"
PostBackUrl="../includes/pdf/Ydelsestabel-kassekredit _FastCash_udskudt.pdf"
/>

but when I click the LinkButton I get an error saing that

System.Web.HttpException: The verb HTTP POST used to acess the path
'/AllInOne
(VS2005)/new_fastcash.dk/includes/pdf/ydelsestabel-kassekredit_Fastcash_normal.pdf'
is not allowed

but I have a <asp:image involved in a <a> and the <a> works perfectly!

How can I enable the link to open the PDF File in thet path?
 
For such functionality you should use a hyperlink (or HyperLink web control)
instead of a LinkButton.
 
Back
Top