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
prisilla jayaraj
NA
35
102.5k
ajax
Aug 7 2011 1:36 PM
i am using ajax update panel in that i place dropdownlist ,my need is i bind the data from database to dropdownlist ,i try it it was working,but when i click the dropdownlist the corresponding item should be display in textbox what is the coding for it?these coding i use it,but it is not working
cn.Open();
da=new SqlDataAdapter("select * from example where no="+DropDownList1.SelectedItem.Text,cn);
da.Fill(dt);
DropDownList1.DataSource = dt;
DropDownList1.DataBind();
cn.Close();
TextBox1.Text = dt.Rows[0][1].ToString();
Reply
Answers (
1
)
To show the values from an array
Ajax