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
Sayed Hassan
NA
23
18k
SQL Select Query in ASP.Net
Jul 17 2013 4:37 AM
I have a table that contains information like(examId, examActive) and I want to display a particular examId in a textbox. I am new in ASP.Net and SQL. Please Help me. Here is my code, what else I have to do.
vcon.Open();
SqlDataAdapter da = new SqlDataAdapter("select examId from ExamConfig where examActive='1'", vcon);
DataTable dt = new DataTable();
DataSet ds = new DataSet();
da.Fill(ds);
txtExamId.Text = dt.Rows[1]["examId"].ToString();
vcon.Close();
Reply
Answers (
7
)
asp and vb script.
marker with label from database