473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Dropdownlist and client side

NH
Hi,

I want to filter records that display in some asp.net dropdownlists without
causing a postback. Any ideas?

e.g. when the selectedindexchange event fires for dropdownlist1 then only
certain records are displayed in dropdownlist 2. I know how to add a client
side javascript event to the dropdownlist but I dont know how to..

1: Filter out records in dropdownlist2 without a postback
2: Whats the best way to handle the data that is returned from the database
that is used as the source for the dropdownlists. e.g. Return a dataset,
store into a session variable and write javascript to populate an array? I'd
need 2 arrays, one for each dropdownlist...

Any code examples or previous experience most welcomed.

Thanks
A
Nov 19 '05 #1
1 1745
You'll most likely have to use javascript. I don't have any samples, but
hp.com use to have something like that on their support site. when you
enter in a model number, the dropdowns would change to only show the proper
product results.. I'm not sure if they still do it that way or not........

"NH" <NH@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com...
Hi,

I want to filter records that display in some asp.net dropdownlists
without
causing a postback. Any ideas?

e.g. when the selectedindexchange event fires for dropdownlist1 then only
certain records are displayed in dropdownlist 2. I know how to add a
client
side javascript event to the dropdownlist but I dont know how to..

1: Filter out records in dropdownlist2 without a postback
2: Whats the best way to handle the data that is returned from the
database
that is used as the source for the dropdownlists. e.g. Return a dataset,
store into a session variable and write javascript to populate an array?
I'd
need 2 arrays, one for each dropdownlist...

Any code examples or previous experience most welcomed.

Thanks
A

Nov 19 '05 #2

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

Similar topics

2
by: jm | last post by:
I have datagrid. On this datagrid there is a button and a dropdownlist. When I press the button, I want the selectedIndex of the dropdownlist. There is a button and a dropdownlist for each...
1
by: Urmal Patel via .NET 247 | last post by:
I have problem with asp:Dropdownlist. I have a dropdownlist control in Page1.aspx and I want to assign value and Text to dropdown list form Page2.aspx from java script function. I am able to assign...
6
by: Julius Fenata | last post by:
Dear all, I have created client-side scripting to trigger event onChange from code-behind, like this: DropDownList1.Attributes = "GenerateArticleID()"; At the script on Windows Form, I...
8
by: gv | last post by:
Ok, Hi all, new to asp.net. Simple question with web forms I have a Dropdownlist and a listbox, I want to click on and item in the dropdownlist and show items in listbox. that simple I...
1
by: Wim | last post by:
Hi Everyone, I'm trying to speed up a Asp.net 1.1 applications' performance. The application needs to run in an environment with little bandwith and therefore pagesizes and roundtrip times shoud...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.