Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 3rd, 2004, 07:29 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dropdown list without autopostback

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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind two dropdown without autopostback xs2bharat ASP.NET 1.0 and 1.1 Basics 20 May 6th, 2007 02:23 AM
Dropdown list maha .NET Framework 2.0 7 April 28th, 2007 12:32 AM
fill dropdown list with items when parent list isaac_cm Pro PHP 1 July 10th, 2006 05:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.