Asp.net connects to the access database. Generally, how can I connect multiple methods?

Source: Internet
Author: User

Asp.net connects to the access database. Generally, how can I connect multiple methods?
Author: iskyalone (MU Zi. Net)
Level 1:
Reputation: 89
Community:. NET technology ASP. NET
Number of questions: 100
Replies: 7
Posting time: 16:26:17

 

<Add key = "connectionstring" value = "provider = Microsoft. jet. oledb.4.0; Data Source = E: \ \ v3203_3721gbook \ v3203_3721gbook \ ttxx.com \ 3721 \ data. aspx; persist Security info = false "/>


-Talent Recruitment-
 
Shanghai kosho digital technology...
Zhuhai Xinhua Tong computer...
Beijing meteran technology development...
China netwave in...
Wu Tao yiyu, Dalian daowai...
Beijing Jiacheng Unlimited technology...
Dibit (Beijing) full...
Beijing zhuyue software technology...
Shanghai cartoon film (Shanghai...
Tom internet group...
Greenwell technology development...
 
-Training information-
 
Exclusive authorization for SIDA in China...
Danyang education enrollment...
China International Engineering and materials...
China Merchants group economic cooperation...
Beijing kangfei ideal technology...
Study Abroad at Capital Normal University...
 
 
 
 
 
 
 
Reply to: wangsaokui (Channel II (forward) () Credit: 100 16:32:00 score: 0
 
 
Www.connectionstrings.com

 
Top
 
Reply to: goody9807 () Credit: 100 16:34:00 score: 0
 
 
Http://dev.csdn.net/develop/article/16/16437.shtm
Www.connectionstrings.com
Database connection through DSN

 
Top
 
Respondent: schema01 (Wind) () Credit: 100 16:35:00 score: 0
 
 
One type

 
Top
 
Reply to: jianweix (Hu Qixing) () Credit: 100 16:37:00 score: 0
 
 
Ado, ODBC

 
Top
 
Reply to: chieftech (you call me Dad, I beat your mom, right ?) () Credit: 90 16:38:00 score: 0
 
 
Application ("connbookaccess") = "driver = {Microsoft Access Driver (*. mdb)}; DBQ =" & server. mappath ("DB/dbbook. mdb ")

 
Top
 
Reply to: goody9807 () Credit: 100 16:38:00 score: 0
 
 
It can be written in the session and called on every page

Or write it in Web. config.

Or write an XML file and read it all.

Or you can call each page in a public class attribute.

 
Top
 
Reply to: iskyalone (MU Zi. Net) () Credit: 89 17:09:00 score: 0
 
 

A syntax error is prompted when I write this code. I don't know where the error is?
<Add key = "connectionstring" value = "provider = Microsoft. jet. oledb.4.0; Data Source = "+ server. mappath ("data \ data. aspx ") +"; persist Security info = false "/>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.