|
 |
aspx_beginners thread: Common dialog boxes
Message #1 by keithstacy@y... on Tue, 30 Jul 2002 17:04:22
|
|
I can't seem to figure out how to do a common dialog box from an ASPX. I
need to have an OpenFileDialog (or the equivalent) pop up on a button
click. Using the Windows.Forms.OpenFileDialog doesn't do it (unless I am
making a newbie mistake). I haven't been able to find a Web control to do
it, either. Suggestions?
Message #2 by "Robert Sindall" <rsindall@z...> on Wed, 31 Jul 2002 09:44:33 +0100
|
|
Try this:
<INPUT class="DarkBox" id="UploadFile" type="file" name="UploadFile"
runat="server">
then code like:
' Get Filename
sFile = UploadFile.PostedFile.FileName
sSplit = Split(sFile, "\")
sFile = sSplit(UBound(sSplit))
sFullPath = "e:\websites\www.whoever.com\uploads\" & sFile
UploadFile.PostedFile.SaveAs(sFullPath)
Where sFullPath is the destination on the server & filename
ok ?
-----Original Message-----
From: keithstacy@y... [mailto:keithstacy@y...]
Sent: 30 July 2002 17:04
To: aspx_beginners
Subject: [aspx_beginners] Common dialog boxes
I can't seem to figure out how to do a common dialog box from an ASPX. I
need to have an OpenFileDialog (or the equivalent) pop up on a button
click. Using the Windows.Forms.OpenFileDialog doesn't do it (unless I am
making a newbie mistake). I haven't been able to find a Web control to do
it, either. Suggestions?
|
|
 |