Hi Guys
I have asp.net application there i have a dropdownlist , even if i select any item from that list
when going to debug mode i always get the first list item number and index but interface shows the selected item on it , what is the reason for it any idea ?
SqlCommand cmd = new SqlCommand("update ClassSchedule set CourseID=@CourseID,[Day]=@Day,StartTime=@StartTime,EndTime=@EndTime,ClassSerNo=@ClassSerNo,InsSerNo=@InsSerNo where Schedule_id=@SchID", con);
cmd.Parameters.AddWithValue("@SchID", txtschid.Text);
cmd.Parameters.AddWithValue("@CourseID", txtcourseid.Text);
cmd.Parameters.AddWithValue("@Day", cbodayname.SelectedItem.Text);
cmd.Parameters.AddWithValue("@StartTime", txtstarttime.Text);
cmd.Parameters.AddWithValue("@EndTime", txtendtime.Text);
cmd.Parameters.AddWithValue("@ClassSerNo", txtclassserno.Text);
cmd.Parameters.AddWithValue("@InsSerNo", DBC.InstID);
try
{
con.Open();
cmd.ExecuteNonQuery();
}
thanks
regards
sumith