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
Kulwinder Dhiman
NA
7
782
DropDownList Bind
Sep 9 2017 11:14 AM
public void dropdownlist()
{
string qry = "select * from dept_detail";
SqlDataAdapter sda = new SqlDataAdapter(qry, ConfigurationManager.ConnectionStrings["cn"].ConnectionString);
DataSet ds = new DataSet();
DropDownList2.DataSource = ds;
DropDownList2.DataTextField = "deptname";
DropDownList2.DataValueField = "deptno";
DropDownList2.DataBind();
}
Hello, I have a simple questions dropdownlist bind error.
The error is "The iListSource does not contain any data sources"
Connection string - Verified.
Database & Tabel - Verified
Please help me
Reply
Answers (
1
)
Can anyone provide some good link for DI & IOC ?
counter from 1 to very big number in C#