R
Reggie
HI and TIA! What I'm trying to do is have my user click a button which
opens the find file dialogue box. Once they find it I want to place the
full path into a variable so that I can use it as the Source in my
connection string. I've tried the HTML File Field control which allows me
to navigate to the .mdb file and it places it into the File Field control on
my page, however every attempt I try to place it in a variable gives me an
error stating that the Page can't be located. I want something like so:
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim con As OleDbConnection
Dim strFile As HttpPostedFile
strFile = inpFileField.PostedFile
con = New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
Source=strFile")
con.Open()
End Sub
Any help is appreciated. Thanks for your time!
opens the find file dialogue box. Once they find it I want to place the
full path into a variable so that I can use it as the Source in my
connection string. I've tried the HTML File Field control which allows me
to navigate to the .mdb file and it places it into the File Field control on
my page, however every attempt I try to place it in a variable gives me an
error stating that the Page can't be located. I want something like so:
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim con As OleDbConnection
Dim strFile As HttpPostedFile
strFile = inpFileField.PostedFile
con = New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
Source=strFile")
con.Open()
End Sub
Any help is appreciated. Thanks for your time!