473,651 Members | 3,036 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Client side script and resetting dropdown lists

AB
I am creating a ASP.Net 1.1 (VB) web. I have 2 drop down lists which
are independent of each other. Both are filled from a database on the
pageload. There is also a search button which searches the database
based on the 2 drop down list entries. The first entry in each drop
down list is "Please Select". What I am trying to do via client side
script is to reset the unselected drop down list when the other drop
down list selects a new option. All controls are ASP controls.
The reason for not posting back to the server and to reset the drop
down lists is due to the time it takes and then the end user has to do
it all again on the search option. I would prefer not to use Ajax for
this too. I would prefer javascript due to cross platform ease. I am a
newbie when it comes to java - so be gentle!!
Thanks

Jul 31 '07 #1
1 1876
On Jul 31, 1:01 am, AB <mr.andre...@gm ail.comwrote:
I am creating a ASP.Net 1.1 (VB) web. I have 2 drop down lists which
are independent of each other. Both are filled from a database on the
pageload. There is also a search button which searches the database
based on the 2 drop down list entries. The first entry in each drop
down list is "Please Select". What I am trying to do via client side
script is to reset the unselected drop down list when the other drop
Which is the "unselected drop down?" And how are they independent if
one controls the other? Surely they don't each do this as that would
send the user in circles. I assume one select (what you refer to as a
"drop down list") controls the other. I also assume that by "reset"
you mean re-populate with new options.
down list selects a new option. All controls are ASP controls.
The reason for not posting back to the server and to reset the drop
down lists is due to the time it takes and then the end user has to do
it all again on the search option. I would prefer not to use Ajax for
If I (partially) understand the problem, you don't need Ajax for this.
this too. I would prefer javascript due to cross platform ease. I am a
newbie when it comes to java - so be gentle!!
Despite the name, JavaScript has nothing to do with Java.
Thanks
Post a link to the .NET application (or the generated form) and
describe the desired client-side enhancement in more detail.

Jul 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
4330
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side vbscript reads the database and populates a listbox on the page with the first field from each record in the recordset. This works fine. - User selects an option on the listbox and, using the OnChange, I
1
1557
by: Ed Chiu | last post by:
Hi, I have 2 dropdown lists on an ASP.Net page, the first is a list of states of US, the second is City list. When user selects a state, the web page does a postback, create a DB connection and bind a dataset to city dropdown list. This is working for me. But I would like to do this on the client side for the following reasons: (1) Doing this on server side takes time, the postback and connecting to DB costs too much.
10
2250
by: Paul | last post by:
Hi I am using the HtmlInputFile control to upload a file from a client to a server. I have a browse to find the file on the server but need to create the path dynamically as to were it will go based on some dropdown boxes, one for the year and one for the month. This line saves the file so I am trying to get the month and year from the dropdown boxes and put them in the month and year variables but this does not work,...
5
2028
by: John Grandy | last post by:
I wrote a function to populate my dropdowns on the client-side. The function adds <optionelements to the <selectonly if none are initially present. I call the population function from either the onfocus or onclick event of the <selectas follows : onclick="populateDropdown(this);return true;"
0
8278
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8807
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.