B Garrett,
You can not use System.Windows.Forms in an ASP.NET application because
your code is running on the server side, not the client.
What you want to do is use an input element of type file, I believe (the
html is something like <input type="file">) and it will allow you add a file
browse to the page on the client side, which will then allow a file to be
posted back to the page. The type in ASP.NET that you want to use is the
HtmlInputFile control.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"B Garrett" <bg*****@twacs.com> wrote in message
news:u9**************@TK2MSFTNGP14.phx.gbl...
Hi,
I have a .ASPX page using C# and I need to read in a text file from a
selected path. so in need the file dialog box to allow the user to choose
the path and file that they want to read in.
What command can I use todo this in a .ASPX page, I tried getting it to
use windows that has the file dialog box but cannot get system.window
class to be included in the project.
Thanks,
B Garrett