0

I am using this post as a reference for what I want to do. I am trying to add a button on my web app that allows the user to click a button upload an excel document straight to a database. In the example I am referencing they use the FileUpload class but It appears I do not know how to use this in a web app.

I attempted putting it in a service file:

 FileUpload fileUpload1 = new FileUpload();

but I cannot reference the fileUpload1 variable in that context. My best guess at this point is that this is a web app and I am trying to use a windows form class. I get a reference to System.Web.UI.WebControls; when I use it though.

Any suggestions?

Community
  • 1
  • 1
Robert
  • 4,306
  • 11
  • 45
  • 95

0 Answers0