DbSqlParameterCollection pCollection1 = new DbSqlParameterCollection();
DbSqlParameter pCourseId2 = new DbSqlParameter("@CourseId", SqlDbType.Int);
pCourseId2.Value = Convert.ToInt32(pCourseId);
pCollection1.Add(pCourseId2);
DataTable CourseTable1 = DatabaseConnection.DoStoredTable("SP_getCourseDetailsOnly", pCollection1);
if (CourseTable1.Rows.Count > 0)
{
//Reassigning Values to their Controls
txtCourseName1.Text = CourseTable1.Rows[0]["Name"].ToString();
txtCourseDuration1.Text = CourseTable1.Rows[0]["Duration"].ToString();
txtCourseAbstract1.Text = CourseTable1.Rows[0]["Abstract"].ToString();
txtCourseDescription1.Text = CourseTable1.Rows[0]["Description"].ToString();
}
All values are perfectly assigned to that textboxes but that value are not displaying in that controls, Why?
I also check with breakpoint line by line......
...
Go to the complete details ...