connection string
-
hi to all any one can tell what the connection string for internet as i am using below line Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Inetpub\\vhosts\\greenindiaconcept.org\\data\\data.mdb ;Persist Security Info=true" and i am using for below link http://www.greenindiaconcept.org/admin/registration.aspx please give me some standard connection string example for website
rizvan sivally
-
hi to all any one can tell what the connection string for internet as i am using below line Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Inetpub\\vhosts\\greenindiaconcept.org\\data\\data.mdb ;Persist Security Info=true" and i am using for below link http://www.greenindiaconcept.org/admin/registration.aspx please give me some standard connection string example for website
rizvan sivally
If your database file is inside a datadirectory then you can use.
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\myDatabase.mdb;Persist Security Info=true"
Regards, Hiren.
My Recent Article: - Way to know which control have raised a postback
My Recent Tip/Trick: - The ?? Operator. -
If your database file is inside a datadirectory then you can use.
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\myDatabase.mdb;Persist Security Info=true"
Regards, Hiren.
My Recent Article: - Way to know which control have raised a postback
My Recent Tip/Trick: - The ?? Operator. -
hi to all any one can tell what the connection string for internet as i am using below line Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Inetpub\\vhosts\\greenindiaconcept.org\\data\\data.mdb ;Persist Security Info=true" and i am using for below link http://www.greenindiaconcept.org/admin/registration.aspx please give me some standard connection string example for website
rizvan sivally
you should store you connection string in
web.config
file and then retrieve connection string fromweb.config
file. because of this, you able to use your connection globally without creating connection every time. navigate the given link Storing and Retrieving Connection Strings in ASP.NET [^] and MS Access Connection Strings[^] -
you should store you connection string in
web.config
file and then retrieve connection string fromweb.config
file. because of this, you able to use your connection globally without creating connection every time. navigate the given link Storing and Retrieving Connection Strings in ASP.NET [^] and MS Access Connection Strings[^]Dear Ravi, Matter here is not about storing a connection string in a safe place. Please get into the question properly. :)
Regards, Hiren.
My Recent Article: - Way to know which control have raised a postback
My Recent Tip/Trick: - The ?? Operator. -
Dear Ravi, Matter here is not about storing a connection string in a safe place. Please get into the question properly. :)
Regards, Hiren.
My Recent Article: - Way to know which control have raised a postback
My Recent Tip/Trick: - The ?? Operator.Hiren Solanki wrote:
Please get into the question properly.
Of-course I did it before posting my answer.
Hiren Solanki wrote:
Matter here is not about storing a connection string in a safe place.
He just want to know how to create a connection for Web programming and I just referring him Links with valuable advice whatever, thanks for your advice.