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
keshu keshvala
NA
7
0
Cannot implicitly convert type sring to string[]...
Aug 22 2010 3:19 AM
error ----Cannot implicitly convert type sring to string[]...
Hi,
I am getting above error .
my code is...
string [] fksprd_id;
cmd = new sqlcommand("select id from table1 where name = ' "+txt.text+" ' ",con);
da = new SqlDataAdapter(cmd);
ds = new DataSet();
da.Fill(ds);
cmd.Dispose();
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
fksprd_id =ds.Tables[0].Rows[i][0].ToString();
}
i just want to store id in this array but iot shows error like
Cannot implicitly convert type sring to string[]...
..
Thanks in advance..
Reply
Answers (
2
)
How to add the two different dataset into one dataset and bind the final dataset to the data list.
installutil problem in windows service