|
 |
aspx_beginners thread: Re: Common dialog boxes
Message #1 by Romis Buffulin <rbuffulin@y...> on Fri, 2 Aug 2002 06:26:20 -0700 (PDT)
|
|
Please, I don't want receive more e-mail about ASP.
Erase-me for your list.
Thanks
Romis Buffulin
--- keithstacy@y... wrote:
> 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?
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Message #2 by "PRJ (Pernille Rosendahl Jacobsen)" <PRJ@N...> on Mon, 5 Aug 2002 11:05:13 +0200
|
|
Try using the File Field under the HTML tab. This should be what you want.
Regards,
Pernille
-----Original Message-----
From: keithstacy@y... [mailto:keithstacy@y...]
Sent: 30. juli 2002 19: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?
Message #3 by keithstacy@y... on Thu, 8 Aug 2002 16:07:36
|
|
It's close, but I cannot readily use it because I cannot move the file
name retrieved into the C# environment. (Perhaps there is a method for
doing that...?) I have been told that there is a way to get
Windows.Forms.Controls to work under ASP.NET. Anybody know it?
> Try using the File Field under the HTML tab. This should be what you
want.
Regards,
Pernille
Message #4 by "Robert Sindall" <rsindall@z...> on Thu, 8 Aug 2002 16:44:05 +0100
|
|
You cannot use Windows.Form classes in asp.net you use web based classes.
And you CAN get the file information from the the control to the code.
http://msdn.microsoft.com/ - is a starting place.
Or:
<INPUT 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 'Where creates
server path
UploadFile.PostedFile.SaveAs(sFullPath) 'saves to the server.
Where sFullPath is the destination on the server & filename
ok ?
-----Original Message-----
From: keithstacy@y... [mailto:keithstacy@y...]
Sent: 08 August 2002 16:08
To: aspx_beginners
Subject: [aspx_beginners] RE: Common dialog boxes
It's close, but I cannot readily use it because I cannot move the file
name retrieved into the C# environment. (Perhaps there is a method for
doing that...?) I have been told that there is a way to get
Windows.Forms.Controls to work under ASP.NET. Anybody know it?
> Try using the File Field under the HTML tab. This should be what you
want.
Regards,
Pernille
|
|
 |