ASP.NET Data Source - Clients/Web Server

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default ASP.NET Data Source - Clients/Web Server

    I have solved an earlier problem which I posted here, about coding Data
    Source in OleDbConnection - I am new to ASP.Net. I do not understand the
    solution, I just blindly followed the book (Teach Yourself ASP.NET in 21
    Days), and guessed, and it worked.

    When OleDbConnection is used to connect to a database, ASP.NET appears to
    expect a client source, not a Web server reference. I just coded
    c:\WWWRoot\.... and it worked.

    Does this mean that ASP.NET downloads a database, like HTML pages are
    downloaded, and then uses the actual client? I find such a concept to be
    unbelieveable, or does ASP.NET download only a database definition? In any
    case it is dangerous to download anything to the client regarding a database
    due to security.

    I expected the Web server to handle the data query and only generated HTML,
    including the data query or update message, to be downloaded to client, and
    the client to have no knowledge about the database. Therefore, I find it
    difficult to understand why a harddrive reference should be included
    anywhere in database connection code.

    Code: dbStr="c:wwwroot\...", objConnection = New
    OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _
    & " Data Source=" & dbStr & ";")

    I would be grateful for any clarification on this?

    Trevor


    trevor oakley Guest

  2. Similar Questions and Discussions

    1. Problems sending data to clients
      Hello there, I'm having somes problems connecting to FMS behind a firewall, who's a computer running m0n0wall. The problems seems to be that FMS...
    2. Configure Data Source MS SQL Server
      i try to add new data source and choose MS SQL Server as a driver. When i click add button, the message "Error Occured While Processing Request"...
    3. Data source not found after upload to server
      Hello!! I am just newbie in coldfusion. I am using coldfuison MX 6.1 and dreamweaver to write my project. I have configured the ODBC conenction in...
    4. Exposing data to clients
      Hi folks, I have a client that has a distributed access disaster that I want to move to a central ASP.NET system. I'm new to web services but is...
    5. WTT: NT Server w/ 10 Clients
      Have Windows NT 4.0 Server with 10 Client licenses. Fully registerable. Wanted Dreamweaver/Flash/Fireworks package. Newest/Registerable only. ...
  3. #2

    Default Re: ASP.NET Data Source - Clients/Web Server

    Trevor Hi,

    OleDBConnection class is part of the CLR classes and it can be used on
    the SERVER side to generate HTML that will be sending to the client. So
    the local path is the server local path. Neither the OLEDBConnection
    will happened on the client machine nor the DB will be download to the
    client.

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!

    Natty Gur Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139