Как открыть/Сохранить pdf-файл в iframe из папки сервера
I have many link buttons in my page. When i click the link button, it should open a file from specific server folder and it should show in iframe. The challenging of the task is, when i open the pdf, then i want edit the pdf file (in iframe), then it should save n the same server folder. Is it possible to open/save in same folder even if i get the read/write access server and pdf..?
Что я уже пробовал:
<asp:LinkButton ID="lnkView" runat="server" Text="View PDF" OnClick="View"></asp:LinkButton> <asp:Literal ID="ltEmbed" runat="server" />
protected void View(object sender, EventArgs e) { string embed = "<object data=\"{0}\" type=\"application/pdf\" width=\"500px\" height=\"500px\">"; embed += "If you are unable to view file, you can download from <a href = \"{0}&download=1\">here</a>"; embed += " or download <a target = \"_blank\" href = \"http://get.adobe.com/reader/\">Adobe PDF Reader</a> to view the file."; embed += "</object>"; ltEmbed.Text = string.Format(embed, ResolveUrl("\\ServerTM101A\TEST\TEST.pdf")); }