Hi,
What is wrong with following code:
I want to clear list item of another dropdown, when selection is done in first dropdown.
---------
<%@ Page Debug="True" %>
<script language="
vb" runat="server">
Sub ChangeActivity(sender As Object, e As System.EventArgs)
act.Items.RemoveAt(0)
'act.Items.Add(New ListItem("text","value"))
lbl.text = "ss"
End sub
</script>
<html>
<body>
<form runat="server">
<asp:label id="lbl" runat="server"/>
<asp:DropDownList id="wtype" runat="server"
AutoPostBack="false"
OnSelectedIndexChanged="ChangeActivity"
>
<asp:ListItem
Text="label"
Value="value"
/>
<asp:ListItem
Text="label"
Value="value"
/>
</asp:DropDownList>
<asp:DropDownList id="act" runat="server" >
<asp:ListItem
Text="act"
Value="value"
/>
</asp:DropDownList>
</form>
</body>
</html>
---------
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.