There are 2 DropDownLists in my page 1.ddlVehicleBrand 2.ddlVehicleModel
I added vehicle brands to the ddlVehicleBrand from the database in Page_Load event. no problem with that. But if i select Toyota in the ddlVehicleBrand list, all the Toyota models should be loaded into the ddlVehicleModel list without reloading the whole page.
I used the SelectedIndexChanged event of ddlVehicleBrand. But when i changed the selected index, the whole page is refreshed and the selected index of ddlVehicleBrand will be the first value.
My code as follows
<body>
<form id="form1" runat="server" >
<div>
<asp:DropDownList ID="ddlVehicleBrand" runat="server" onselectedindexchanged="ddlVehicleBrand_SelectedIndexChanged" AutoPostBack="true"/>
<br />
<br />
<asp:DropDownList ID="ddlVehicleModel" runat="server" />
<br />
<br />
<br />
</div>
</form>
When i changed the selected index of first DropDownList, the Page_Load event is automatically called. How to load particular models for each brand without refreshing whole page. Thanks in advance