HI,
the error is here
Quote:
Schtype = Convert.ToInt32(cmbSchtype.SelectedItem.Value);
you are referring
"cmbSchtype.SelectedItem.Value"
, but value is empty or null, because of below statement.
Quote:
if(Session["language"].ToString()!="English")
cmbSchtype.Items.Insert(0,new ListItem("--தேர்நதெடு--"));
else
cmbSchtype.Items.Insert(0,new ListItem("--Select ScheduleType--"));
while creating ListItem object, you are specifying only Text, not the value. So, specify some integer value like below.
if(Session["language"].ToString()!="English")
cmbSchtype.Items.Insert(0,new ListItem("--தேர்நதெடு--", "0"));
else
cmbSchtype.Items.Insert(0,new ListItem("--Select ScheduleType--", "1"));
hope it helps.