Check below peace of code. It might help you.
Let's say we have 3 dorpdown.
<asp:DropDownList ID="DropDownList1" runat="server" Width="150px"
AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem>a</asp:ListItem>
<asp:ListItem>b</asp:ListItem>
<asp:ListItem>c</asp:ListItem>
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
<br />
<asp:DropDownList ID="DropDownList2" runat="server" Width="150px"
AutoPostBack="True" onselectedindexchanged="DropDownList2_SelectedIndexChanged">
<asp:ListItem>a</asp:ListItem>
<asp:ListItem>b</asp:ListItem>
<asp:ListItem>c</asp:ListItem>
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
<br />
<asp:DropDownList ID="DropDownList3" runat="server" Width="150px"
AutoPostBack="True" onselectedindexchanged="DropDownList3_SelectedIndexChanged">
<asp:ListItem>a</asp:ListItem>
<asp:ListItem>b</asp:ListItem>
<asp:ListItem>c</asp:ListItem>
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
Below is the code behind code.
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
string item = DropDownList1.Text;
DropDownList2.Items.Remove(item);
DropDownList3.Items.Remove(item);
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
string item = DropDownList2.Text;
DropDownList1.Items.Remove(item);
DropDownList3.Items.Remove(item);
}
protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
{
string item = DropDownList3.Text;
DropDownList1.Items.Remove(item);
DropDownList2.Items.Remove(item);
}
If you want to do something similar on Page Load you can do that also based on above code.