TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anil john
NA
156
211.1k
.net
Aug 27 2012 7:36 AM
I am getting an error: Fill: SelectCommand.Connection property has not been initialized., whats wrong in my code
my code:
sda = new SqlDataAdapter();
cmd = new SqlCommand();
cmd.Connection = con.conSql;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "sp_SelectFormName";
DataTable dt = new DataTable();
sda.SelectCommand = cmd;
sda.Fill(dt);
dgPreveleges.DataSource = dt;
Reply
Answers (
1
)
Difference between .Tostring() and convert.Tostring()
i am am.tech embedded systems passed out 2011 got a job in ecentric solutions on .net platform