Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Asynchronous Process throuch Oledb Argent.................................

Asynchronous Process throuch Oledb Argent.................................

Scheduled Pinned Locked Moved ASP.NET
helptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sri_ashutosh
    wrote on last edited by
    #1

    faching a problem Error 1 'System.Data.OleDb.OleDbCommand' does not contain a definition for 'BeginExecuteReader how to solve this problem if i use this process in sqlserver 2000 then no problem but i use this process in access then i faching a problem Thank's and Best Regords Ashutosh

    E 1 Reply Last reply
    0
    • S sri_ashutosh

      faching a problem Error 1 'System.Data.OleDb.OleDbCommand' does not contain a definition for 'BeginExecuteReader how to solve this problem if i use this process in sqlserver 2000 then no problem but i use this process in access then i faching a problem Thank's and Best Regords Ashutosh

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Can you post your entire code

      We are not a Code Charity

      S 1 Reply Last reply
      0
      • E eyeseetee

        Can you post your entire code

        We are not a Code Charity

        S Offline
        S Offline
        sri_ashutosh
        wrote on last edited by
        #3

        IAsyncResult BeginAsyncWork1(Object sender, EventArgs e, AsyncCallback cb, object state) { string db = Server.MapPath("~/DB/AsynchronousProcess.mdb"); string connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source='" + db + "';"; _connection1 = new OleDbConnection(connectionstring); _connection1.Open(); int i; for (i = 2; i <= 1001; i++) { _command1 = new OleDbCommand("Insert Into Information values('xyz',#01/01/01#)", _connection1); _command1.ExecuteNonQuery(); } return _command1.BeginExecuteReader(cb, state); }

        E 1 Reply Last reply
        0
        • S sri_ashutosh

          IAsyncResult BeginAsyncWork1(Object sender, EventArgs e, AsyncCallback cb, object state) { string db = Server.MapPath("~/DB/AsynchronousProcess.mdb"); string connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source='" + db + "';"; _connection1 = new OleDbConnection(connectionstring); _connection1.Open(); int i; for (i = 2; i <= 1001; i++) { _command1 = new OleDbCommand("Insert Into Information values('xyz',#01/01/01#)", _connection1); _command1.ExecuteNonQuery(); } return _command1.BeginExecuteReader(cb, state); }

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          check you have using System.Data.OleDb; at the top of your page

          We are not a Code Charity

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups