lhostiydul
New Member
I'm trying to figure out the .NET equivalent of the following VB6 connection string so I can use it in ASP.NET coding:<BR><BR>strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "iblio.mdb"<BR><BR>Basically need to find an equivalent for the "Path" property of the "App" object. Tried to make sense of the "System.Reflection" namespace but ran into a wall. Can someone please point me in the right direction. Thanks...Just use Server.MapPath("biblio.mdb") and it will return the physical path that the ASP.NET Web page exists in with the .mdb filename added, like:<BR><BR>c:inetpubwwwrootDir1iblio.mdb<BR><BR>hthThanks Scott. It worked fine with the string:<BR><BR>"PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("biblio.mdb") & ";"<BR><BR>Guess I got misdirected when I went into .NET Help looking for an "App" replacement object. Thanks again!