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
anuj
NA
19
3.6k
get Data from database
Jan 14 2016 5:23 AM
how to get data from database ....
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("select id from customer where Name ='" +comboBox1.SelectedValue + "'", con);
int anuj1 = Convert.ToInt32(cmd.ExecuteScalar());
con.Close();
if (anuj1 > 0)
{
txtid.Text = Convert.ToString(anuj1);
}
}
catch
{
}
Reply
Answers (
7
)
when marker move how to show latlong in ASP.net MVC?
How to create web application in vb.net 1.1&host in IIS7.5