Hi Guys,
I've written this function in ASP.NET, it retrive data on the listdown list from the database. The second drop down list depends on the item inserted on the first drop down. Both list are retrived from the database according to users specification. At present i'm doing my function is ASP.NET:
<asp:DropDownList id="txtcurrentsupplier" DataValueField="TelephoneSupplierID" DataTextField="TelephoneSupplierName" Runat="server" AutoPostBack="True">
</asp:DropDownList></DIV>
<DIV>
<asp:DropDownList id=currentsuppliertariff Runat="server" DataValueField="TelephoneCallPlanName" DataTextField="TelephoneCallPlanName"></asp:DropDownList>
As you can see i'm using autopostback. I've been told not to use autopostback as this refreshes the website.
The alternative way to do this sort of stuff is via JavaScript. But i do not have a clue on how to write the function. Can some one direct me on how to write the function. I'm very poor at JavaScript. For more info please take a look at the usage section of
http://www.uswitch.com/home-phone/ the functionality needs to be exactly the same. I'm pretty much sure it was written in JavaScript.
Can anyone direct me on how i could write this function.