locked
web application source address coding problem RRS feed

  • Question

  • Hello,
    i made a web application on microsoft visual studio 2008, it works on the laptop but it is not accessing the database on web when i uploaded it on website.

    i am accessing my database from D: drive on PC. but on my hosting page only two folders are available ROOT folder<where i uploaded website file  > and DATAbase folder <where my database is present>

    so where exactly i should place my database  on pc so that it would work correct on web

    protected void Button1_Click(object sender, EventArgs e)
           {
       string conString = Provider=Microsoft.Jet.OLEDB.4.0; Data Source=d:\\database.mdb;
               OleDbConnection Con = new OleDbConnection(conString);
               Con.Open();
               string sql = select max(ID) from OnlineBooking;
               OleDbCommand cmd = new OleDbCommand(sql, Con);
               OleDbDataAdapter da = new OleDbDataAdapter(sql, Con);
               DataSet ds = new DataSet();
               .
               .
               and so on


               plz help me out..
    Thursday, December 16, 2010 2:15 PM