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
zartin zaid
NA
1
1.3k
what i did wrong ??
Jul 18 2013 7:25 PM
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
dataGridView1.Rows.Clear();
SqlConnection con = new SqlConnection("Data Source=" + Settings.Default.db_ip + ";Initial Catalog=" + Settings.Default.db_name + ";User Id=" + Settings.Default.db_user + ";Password=" + Settings.Default.db_pass + ";");
SqlDataAdapter tbCount = new SqlDataAdapter("USE " + Settings.Default.db_name + " SELECT * from'" + comboBox1.Text + "'", con);
DataSet dt = new DataSet();
tbCount.Fill(dt);
this.dataGridView1.DataSource = dt.Tables[0];
}
please help
Reply
Answers (
3
)
Get the C#.NET application metrics (Memory consumption)
add aspx page in mvc4 razor