It's still looking for the database on my computer instead of the sever. Now I'm getting this error: C:\Inetpub\wwwroot\db\db_n
My page load event looks like this:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim strConn = String.Format("...........
OleDbDataAdapter1.Fill(DsE
If Not IsPostBack Then
DataGrid1.DataBind()
End If
End Sub
It goes back the main problem of knowing how to buile a data adapter that points to the server database instead of to my computer.
Main Topics
Browse All Topics





by: naveenkohliPosted on 2006-06-28 at 06:50:56ID: 17001093
You can always modify the connection string in page_load event of your page to point to different location. If your MDB file lives in "httpdocs\db\db_nts_web.md b" under root folder of your virtual directory, then use Server.MapPath to get actual physical path to the file and then fix your connection string with that path.
.......... ....... file={0}", Server.MapPath("~/httpdocs /db/db_nts _web.mdb") );
String strConn = String.Format("...........