Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
338 views
in Technique[技术] by (71.8m points)

vb.net - Create an ASP.net Web App that takes pdf files as input (upload) in Visual Basic

I need to add a button to my ASP.net web app that takes a pdf file and does some stuff to it.

I already have the "stuff" code working, I just need the working button that supplies it with a pdf file.

I have found various resources specifying how to do this, but they are all in C# and Windows Forms, which is not what I am using, I'm using an ASP.net web App with Visual Basic.

So far I have this HTML

<INPUT id="oFile" type="file" runat="server" NAME="oFile">Select the image file to upload to the server:
<asp:button id="btnUpload" type="submit" text="Upload" runat="server"></asp:button>
<asp:Panel ID="frmConfirmation" Visible="False" Runat="server">
    <asp:Label id="lblUploadResult" Runat="server"></asp:Label>
</asp:Panel>

I know I need a Click event handler for the Upload button, but I can't figure out how to write it.

question from:https://stackoverflow.com/questions/66053348/create-an-asp-net-web-app-that-takes-pdf-files-as-input-upload-in-visual-basic

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...