|
-
Nov 20th, 2006, 09:07 AM
#1
Thread Starter
New Member
Some easy questions
hi,
my codes is
Dim connection as New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim command as New SqlCommand("Select * from teacher where SNo = @SNo',connection)
command.Parameters.Add("@SNo",lol.text)
Dim dataAdapter as New SqlDataAdapter(command)
Dim result as New dataSet
connection.open()
dataAdapter.Fill(result,"teacher")
connection.close()
my error is
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where ir originated from the code.
Exception Detail : System.InvalidOperationException. The connectionString property has not been initialized..
Source error
Line 60 connection.Open()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|