protected void Button2_Click(object sender, EventArgs e) { dbaddress = (Request.PhysicalApplicationPath).ToString() + "App_Data\\" + addressbox.Text; temp.addmaindb(dbaddress, (Request.PhysicalApplicationPath).ToString()); Label2.Text = "Table created"; Thread.Sleep(1000); temp.setdbparam(((Request.PhysicalApplicationPath).ToString() + "App_Data\\config.txt"), 1, addressbox.Text); Label2.Text = ("New config"); Thread.Sleep(1000); checkfile(); }