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
dagotto
NA
1
1.8k
Set textbox.text with value from my database c#
Oct 4 2011 9:05 AM
Trying to fill texbox.text with data from database.
code:
con.Open();
SqlCommand updatetextbox = new SqlCommand("SELECT * FROM Arbeidstaker Where Person_id = 1", con);
SqlDataReader myDataReader;
myDataReader = con.ExecuteReader();
while (myDataReader.Read())
{
TextBox1.Text = myDataReader["Fornavn"].ToString();
}
--------------------
Is there a better way?
My code offc dont work properly...
tnx
Reply
Answers (
1
)
I want to split after 20 characters in a given string and i want to place in another string
C sharp vs Fortran