In web application using asp.net, i am using repeater control, in ItmeCommand
event i am trying to find a control using fid control method, i write the code for finding the control it is working fine, when the control is not in repeater control, i am getting exception. How can i handle the exception if the control is not in repeater control. My code is like this :
if (((DropDownList)rpPendingApprovals.Items[i].FindControl "drpBack")).SelectedItem.Value != "0")
when dropdown controls is not there, in repeater then how can i handle this exception help me, thank you.