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
karthik Balamreddy
NA
1
8.1k
Beginner-- storing the max value from table and storing in a string
Dec 18 2010 12:16 PM
hi
I am new to C# programming,Kindly help me in the above issue.
how can i store the max value from tale to a label.
string s = "select max(id) from gen";
label.text = Convert.ToString(cmd.ExecuteScalar);
I am getting the following error
1)The best overloaded method match for 'System.Convert.ToString(object)' has some invalid arguments
2
)Argument '1': cannot convert from 'method group' to 'object'
Attachment:
New Text Document (2).zip
Reply
Answers (
1
)
c#
Addition operating at a SQL query?