How to open a PDF File

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?
 
S

Steve C. Orr [MVP, MCSD]

For such functionality you should use a hyperlink (or HyperLink web control)
instead of a LinkButton.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top