How to retrieve an Ms Access table using ASP.NET-C# wch should get open in Ms Access

Discussion in 'ASP.NET' started by Reitha G Nair, May 6, 2010.

  1. Reitha G Nair

    Reitha G Nair New Member

    Joined:
    May 6, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    please Help,
    I hav created one web form using ASP.NET-C# and database Mhe s Access 2007. I did save my database in .mdb format.
    i want to open a particular table from the database in a button click. The codes i have written s working fine to open the complete database

    protected void btnOk_Click(object sender, EventArgs e)
    {
    Process mProcess = new Process();
    mProcess.StartInfo.FileName =
    "D:\\Trade Enquiry Management System\\App_Data\\TenderEnquiryManagementSystem.mdb";
    mProcess.StartInfo.WindowStyle =
    ProcessWindowStyle.Normal;
    mProcess.StartInfo.CreateNoWindow =
    true;
    mProcess.Start();
    mProcess.WaitForExit();
    if (!mProcess.HasExited)
    {
    mProcess.Kill();
    }
    mProcess.Close();
    }


    Bt i want to open a table 'Enquiry' under TenderEnquiryManagementSystem.mdb
    Any body ll pls help me to get the code for that?????

    Thanq
    Reitha
     
  2. satyedra pal

    satyedra pal New Member

    Joined:
    Mar 26, 2010
    Messages:
    93
    Likes Received:
    1
    Trophy Points:
    0
    Re: How to retrieve an Ms Access table using ASP.NET-C# wch should get open in Ms Acc

    MSAccess table can be access in ASP.Net also by using oledb database provider.Oledb is used on the place of process with its coding.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice