I have this error pliz help me out. "The ConnectionString property has not been initialized."

Recommended Answers

All 4 Replies

check if the connection is open
check if the connection string has proper values

have u even initialized connection string
check for that

please check your connection is open.
i.e)
vb.net:
con.open()

khuks,
Connection object is created but you forget to set connection string.

Dim Cn as New SqlConnection()
Cn.ConnectionString="Your connectionString"

or

Dim Cn as New SqlConnection("Your connectionString")
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.