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
Santosh Pisipati
NA
5
0
Getting errorr object reference not set to an instance of an
Feb 27 2013 8:17 AM
E_CollageBo objCollege = new E_CollageBo();
DataTable dtCollage = objCollege.GetAllActiveCollages();
if (dtCollage.Rows.Count > 0)
{
dtCollage.DefaultView.Sort = "CollegeName ASC";
ddlCollege.DataSource = dtCollage;
ddlCollege.TextField = "CollegeName";
ddlCollege.ValueField = "CollegeId";
ddlCollege.DataBind();
}
I haven't got any sql connection to get the data to the datatable hence this dtcollage is null and is the error please let me know what i need to check
Reply
Answers (
2
)
MAIN FORM AND SUB FORM
C#