to pass null value from drop down based on radio.selected index [Resolved]

Posted by Suniluc under ASP.NET on 2/5/2013 | Points: 10 | Views : 944 | Status : [Member] | Replies : 3
protected void RdCtgry_SelectedIndexChanged(object sender, EventArgs e)
{
string ctgry = RdCtgry.SelectedItem.Value.ToString();
if (ctgry == "Commercial")
{
drpEmpCode.ClearSelection();
drpEmpCode.Enabled = false;
}
else
{
drpEmpCode.Enabled = true;

}
}




Responses

Posted by: Pavanandey on: 2/5/2013 [Member] Bronze | Points: 50

Up
0
Down

Resolved
drpEmpCode.Items.Clear();
drpEmpCode.Enabled = false;



Mark the Answer if this helps you

Thanks
Pavan Kumar
Mark Answer if this fits the need

Suniluc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Suniluc on: 2/5/2013 [Member] Starter | Points: 25

Up
0
Down
even when i disable the drop down list and i tried
drpEmpCode.Text=" "

plz give me a solution

thanks in advance

Suniluc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Suniluc on: 2/5/2013 [Member] Starter | Points: 25

Up
0
Down
thank you pavanandey. that done it

Suniluc, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response