Results 1 to 3 of 3

Thread: Connect Access MDB

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool Connect Access MDB

    how i connect Ms Access DB thru ASP.NET(ADO.NET)
    .

    also when i click a submit button it's go another page...

    how can i do that...

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    About the submit button, use Response.Redirect("MyPage.aspx") in your code.

    Connecting to a Access DB is the same as it is for regular windows apps. What are you having problems with?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    thanks for replay...

    in ASP i connect the db like this:

    dim con
    dim rs
    dim constr
    constr = "Provider=Microsoft.JET.OLEDB.4.0; Data source=E:\mydb.mdb"

    set con = server.createObject("ADODB.Connection")
    set rs = server.CreateObject("ADODB.Recordset")

    con.open constr
    rs.open "select * from mytable",con

    can u plz tell me how i wrote it in ASP.NET.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width