Hi everybody! In Windows.Forms, I use de FolderBrowserDialog to select a directory, but i can't us

Posted by Sp under ASP.NET on 9/30/2010 | Points: 10 | Views : 3390 | Status : [Member] | Replies : 3
Hi everybody!

In Windows.Forms, I use de FolderBrowserDialog to select a directory, but i can't use this component in a Web.Form. What component can I use to open a folder browser dialog in asp.net?

A user must select a folder that will be saved in DB, but i don't now what component can i use to open a browser dialog.




Responses

Posted by: T.saravanan on: 9/30/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Sp,

Using FileUpload Control you can achieve your output.

http://www.codeproject.com/KB/books/ASPNET20FileUpload.aspx

Refer this link its will helpful to you.

Cheers :)

Thanks,
T.Saravanan

Sp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: BangaruBabu on: 9/30/2010 [Member] Starter | Points: 25

Up
0
Down
File Upload Control in ASP.NET Server Control Work Fine For The Same Requirement U Asked

BangaruBabu Pureti
http://bangarubabupureti.spaces.live.com/

Sp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lalji_mer on: 10/1/2010 [Member] Bronze | Points: 25

Up
0
Down
The OpenFileDialog class is defined in Windows.Forms class. You need to add to reference to System.Windows.Form.dll library and call using System.Windows.Forms before using the class.

Private fdlg As OpenFileDialog = New OpenFileDialog()

Private fdlg.Title = "C# Corner Open File Dialog"
Private fdlg.InitialDirectory = "c:\"
Private fdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*"
Private fdlg.FilterIndex = 2
Private fdlg.RestoreDirectory = True
If fdlg.ShowDialog() = DialogResult.OK Then
textBox1.Text = fdlg.FileName
End If



LP MER

Sp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response