Results 1 to 8 of 8

Thread: linking access to asp.net

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2011
    Posts
    178

    linking access to asp.net

    Hello All,
    I have an access database with several menus and reports. What I want is put that on an asp.net site so that everyone can access it. Can you please give me some guidelines?

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: linking access to asp.net

    Basically you will have to rewrite a lot of stuff, especially on the controls side.
    You better tell us more on what u use.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    Member
    Join Date
    Jan 2012
    Posts
    46

    Re: linking access to asp.net

    There is alot that needs to be written, first you need to get a connection string for the database you are using. then you need to make a new connection, open the connection, run the commands that you want, and when your done, close the connection.

    The MSDN site is pretty helpful on the subject

    http://msdn.microsoft.com/en-us/library/ax3wd0k9.aspx

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: linking access to asp.net

    Hello,

    Take a look at the links in my signature regarding ADO.Net. This is what you will use to create a connection between your Access Database and your ASP.Net application.

    Gary

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2011
    Posts
    178

    Re: linking access to asp.net

    Hello All,
    Thank you for your reply. In the access database, there is a switchboard (menu) and this switchboard leads to different reports and forms. So i was thinking whether it is possible to put this on a website so that everyone can access. I am a vb beginner. So can that be done with asp.net? Just like I am going to through the access database through MS access, is it possible to go through it using asp.net? I hope I can explain myself well. I really need your help

  6. #6
    Member
    Join Date
    Jan 2012
    Posts
    46

    Re: linking access to asp.net

    Not quite sure what you mean when you say go through...my take on it is you would like to be able to view that on your webpage? If that's what you mean then yes you can, once you establish the connection with the DB, you can code in query's with VB that will run when user performs a certain action. not sure about switchboards though, never used them myself, but it should be possible. Not sure how to write the selection for VB as I am new to it as well. I know for C# it goes like this:

    String selectionString = "SELECT * FROM table_name"; you can add specific columns and add where clauses just like in SQL. it has been awhile since I have written queries in asp.net right now I have the query written in SQL using SQL Developer which I link to the project I am running. but you should be able find lots of examples using google.

  7. #7
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: linking access to asp.net

    If i understand switchboard correctly you may wan to take a look at asp TabContainer.Don't expect "forms" to be make as per winforms.You will probably have to use CSS to design them proper.What else,err, Access, well Access is bad for your health, you can use sql express.Also be ware that with every page postback you will loose any stored values unless you store them first.
    I suggest you do a basic read on asp.net because there isn't really a key point that will help you.You better leave your application for now a do a basic read.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: linking access to asp.net

    Quote Originally Posted by ashley.s View Post
    Hello All,
    Thank you for your reply. In the access database, there is a switchboard (menu) and this switchboard leads to different reports and forms. So i was thinking whether it is possible to put this on a website so that everyone can access. I am a vb beginner. So can that be done with asp.net? Just like I am going to through the access database through MS access, is it possible to go through it using asp.net? I hope I can explain myself well. I really need your help
    Put simply, no. You wouldn't want ASP.Net to go through MS Access. ASP.Net, using ADO.Net will communicate directly with the underlying .mdb file, which is actually what stores the Relational Data that is your Database.

    As sap has mentioned, you are not going to get anything for "free" when you port your application database into ASP.Net. You are going to have to take control of creating the displays for the data that you might have got for "free" when you used MS Access.

    Gary

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