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
  1. Home
  2. Web Development
  3. ASP.NET
  4. need help in access database

need help in access database

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdatabasedebugging
3 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.
  • J Offline
    J Offline
    jacal99
    wrote on last edited by
    #1

    i have some problem in to check loging in access database. i am getting this error as under ------------------- Exception Details: System.Data.OleDb.OleDbException: Could not find installable ISAM. -------------------- the line of error is this ---------------- oledbCon.Open(); ---------------- my all code is as under ------------------------- <%@ Page Language="C#" Debug="True" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> // Insert page code here OleDbConnection oledbCon; void Page_Load(Object sender, EventArgs e) { OleDbConnection oledbCon = new OleDbConnection("Provider = Microsoft.Jet.OleDb.4.0; DataSource = d:\\access1.mdb"); oledbCon.Open(); } void login_check(Object sender, EventArgs e) { string uid = txtuser.Text; string upass = txtpass.Text; OleDbConnection oledbCon = new OleDbConnection("Provider = Microsoft.Jet.OleDb.4.0; DataSource = d:\\access1.mdb"); OleDbCommand oledbCom = new OleDbCommand("Select fname from users where username = '"+uid+"' and upassword = '"+upass+"' ", oledbCon); //oledbCon.Open(); OleDbDataReader dr = oledbCom.ExecuteReader(); if(dr.Read()) { Response.Write("You are logged in"); string url = Request.QueryString["ReturnUrl"]; if(url==null) url = "main.aspx"; Response.Redirect(url); } else { Response.Write("Your Login Faild Try to Register and then login"); } }

    Access Login

    Username:

    Password:

    S 1 Reply Last reply
    0
    • J jacal99

      i have some problem in to check loging in access database. i am getting this error as under ------------------- Exception Details: System.Data.OleDb.OleDbException: Could not find installable ISAM. -------------------- the line of error is this ---------------- oledbCon.Open(); ---------------- my all code is as under ------------------------- <%@ Page Language="C#" Debug="True" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> // Insert page code here OleDbConnection oledbCon; void Page_Load(Object sender, EventArgs e) { OleDbConnection oledbCon = new OleDbConnection("Provider = Microsoft.Jet.OleDb.4.0; DataSource = d:\\access1.mdb"); oledbCon.Open(); } void login_check(Object sender, EventArgs e) { string uid = txtuser.Text; string upass = txtpass.Text; OleDbConnection oledbCon = new OleDbConnection("Provider = Microsoft.Jet.OleDb.4.0; DataSource = d:\\access1.mdb"); OleDbCommand oledbCom = new OleDbCommand("Select fname from users where username = '"+uid+"' and upassword = '"+upass+"' ", oledbCon); //oledbCon.Open(); OleDbDataReader dr = oledbCom.ExecuteReader(); if(dr.Read()) { Response.Write("You are logged in"); string url = Request.QueryString["ReturnUrl"]; if(url==null) url = "main.aspx"; Response.Redirect(url); } else { Response.Write("Your Login Faild Try to Register and then login"); } }

      Access Login

      Username:

      Password:

      S Offline
      S Offline
      Spanky3
      wrote on last edited by
      #2

      are you using visual studio ?

      J 1 Reply Last reply
      0
      • S Spanky3

        are you using visual studio ?

        J Offline
        J Offline
        jacal99
        wrote on last edited by
        #3

        no i am using asp webmatrix tool. Mazhar Hussain

        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