Nutshell: How do I get the value from <INPUT type="file"...> into the code behind a webform?
Detailed: I'm writing a web-based email client (a la hotmail, gmail, yahoo...). I know how to send mail already (been there, done that, got the stamps on my passport). I want to allow the client to browse for a file and attach that to the mail message. I'm probably overlooking the obvious but I can't seem to figure out how to get the value from a generic HTML control (input type=file) on my webform to the point where I can use it to create a MailAttachment object.
BTW, I'm a programming instructor but 99% of my experience is using C++ to write stand-alone apps, this VB/ASP.Net stuff is new to me.
Detailed: I'm writing a web-based email client (a la hotmail, gmail, yahoo...). I know how to send mail already (been there, done that, got the stamps on my passport). I want to allow the client to browse for a file and attach that to the mail message. I'm probably overlooking the obvious but I can't seem to figure out how to get the value from a generic HTML control (input type=file) on my webform to the point where I can use it to create a MailAttachment object.
BTW, I'm a programming instructor but 99% of my experience is using C++ to write stand-alone apps, this VB/ASP.Net stuff is new to me.