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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…