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
Marvin kakuru
1.1k
354
159.8k
View data selected in textboxes
Jul 16 2011 2:20 PM
Hi all i am trying view various rows in a database table on various textboxes. below is the code im using
SqlConnection
string
SqlCommand
cn.Open();
string
textBox3.Text = s1.ToString();
textBox4.Text = s1.ToString();
textbox3 to view day and textbox4 to view date
any help will be highly apprieciated.
thanks
s1 = cmd.ExecuteScalar().ToString();
cmd =
new
SqlCommand
(sql, cn);
sql = (
"select day,date from Herdregistar where UIC like '%"
+ textBox1.Text +
"%'"
);
cn =
new
SqlConnection
(
"Data Source=KATOTO-PC;Initial Catalog =thyfarm;User ID=sa;Password=Kyozi"
);
Reply
Answers (
2
)
RDLC Report Viewer
Need help writing code