Groups | Blog | Home
all groups > sql server programming > february 2006 >

sql server programming : Where is the OpenFileDialog?


De kessé
2/5/2006 6:56:00 PM
How do I get an openfiledialog in an asp.net page?

I try me.openfiledialog but it does not work...

Sreejith G
2/5/2006 6:57:26 PM
Yes thats the javascript kind of coding ie client side and specify (runat =
server) to execute that as a server object.

One other thread, if it helps you =>

http://www.codecomments.com/archive289-2005-4-476254.html

Again this is Sql Server forum, puerly database oriented. To get good
feedback next time on wards try.

http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.framework.aspnet&lang=en&cr=US

Thanks,
Sree

[quoted text, click to view]
De kessé
2/5/2006 7:17:16 PM
im using Visual Studio 2005

[quoted text, click to view]

De kessé
2/5/2006 8:29:51 PM
I found this

http://www.4guysfromrolla.com/webtech/091201-1.shtml

I guess this is the best solution...

[quoted text, click to view]

De kessé
2/6/2006 12:00:00 AM

sorry wrong forum
txs for the link

ok i will try it!

[quoted text, click to view]

Jens
2/6/2006 5:35:07 AM
If youare using VS2005 use the WebClient.DownloadFile Method.
De kessé
2/6/2006 12:57:01 PM
now i made this code and the error is gone but no open dialog shows up. why?

Sub Upload_Click(ByVal Sender As Object, ByVal e As EventArgs)

Dim newthread As New Threading.Thread(AddressOf SeconThread)

newthread.SetApartmentState(Threading.ApartmentState.STA)

newthread.Start()

End Sub


Public Sub SeconThread()

Dim ofd As New Windows.Forms.OpenFileDialog

ofd.Filter = "Text files (*.txt)|*.txt|" & "All files|*.*"

ofd.Multiselect = False

If ofd.ShowDialog() = Windows.Forms.DialogResult.OK Then

End If



[quoted text, click to view]

De kessé
2/6/2006 1:01:20 PM
it works!
the dialogbox was behind!!!
now how can i get the dialogbox on top?

[quoted text, click to view]

AddThis Social Bookmark Button