locked
Grid control with ms acess in asp.net using vb RRS feed

  • Question

  • User-656010581 posted

    hi,

     I m a begginer in asp.net. I hav connected the ms-access 2003 wit asp.net 2005 using vb. I can view the data by usin this code.

    Dim msaccessconnect, query, databasecommunication, readdatabase
            msaccessconnect = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & Server.MapPath("db1.mdb"))
            msaccessconnect.Open()
            query = "SELECT * FROM `advertiser`"
            databasecommunication = New OleDbCommand(query, msaccessconnect)
            readdatabase = databasecommunication.ExecuteReader()
            GridView1.DataSource = readdatabase
            GridView1.DataBind()
            readdatabase.Close()
            msaccessconnect.Close()


    But I dont know to update, delete options in tat. Can any one help Please???Reply me any one!!!!!

    Friday, August 6, 2010 1:30 PM

All replies