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
Jyoti Jodha
NA
1.7k
407.2k
cannot implicitly convert type 'string' to 'int' in c#
Apr 11 2017 1:02 AM
cannot implicitly convert type 'string' to 'int' in c# Windows Application
private int billno(string p)
{
string Billno = "0";
cmd = new SqlCommand(p, con);
con.Open();
SqlDataReader reader = cmd.ExecuteReader();
if (reader.Read())
{
Billno = reader[0].ToString();
}
reader.Close();
return Billno;
con.Close();
}
private void btn_Insert_Click(object sender, EventArgs e)
{
int Billno = billno("Select ISNULL(Max(Billno+1),1) From MainBillForm");
}
Reply
Answers (
12
)
Error in Query in windows application c#
how to get total days in from selected date to till Date