have two Dropdownlist and one which is containing States and one
containing Cities. I know how to do all the little databinding task in
visual studios interface as well as set the relationship (parent, child,
etc.). In the code behind file in page_load event I fill the data adapter
and databind the State dropdownlist. I also set the on_change event for the
Cities dropdownlist after a state is selected. However, When I run this page
in the browser the state dropdownlist populate with the States, but after
selecting a State the Cities dropdownlist DO NOTHING.
What I'm I doing wrong? Could some one please send me some code that handle
these action?
I'm working with stored procedures from sql2000. Should I just set up a
parameter procedure for the Cities dropdownlist (instead of Relationship in
vs.net) and pass in the selected State? 2 3553
.... AUTOPOSTBACK=TR UE ...
in your drop-down list.
"Leon Shaw" <vn*****@msn.co m> wrote in message
news:eq******** ******@tk2msftn gp13.phx.gbl... have two Dropdownlist and one which is containing States and one containing Cities. I know how to do all the little databinding task in visual studios interface as well as set the relationship (parent, child, etc.). In the code behind file in page_load event I fill the data adapter and databind the State dropdownlist. I also set the on_change event for
the Cities dropdownlist after a state is selected. However, When I run this
page in the browser the state dropdownlist populate with the States, but after selecting a State the Cities dropdownlist DO NOTHING. What I'm I doing wrong? Could some one please send me some code that
handle these action? I'm working with stored procedures from sql2000. Should I just set up a parameter procedure for the Cities dropdownlist (instead of Relationship
in vs.net) and pass in the selected State?
I already have that set. What else can it be?
"David Waz..." <dl*@pickpro.co m> wrote in message
news:27******** ************@ne wssvr11.news.pr odigy.com... ... AUTOPOSTBACK=TR UE ...
in your drop-down list.
"Leon Shaw" <vn*****@msn.co m> wrote in message news:eq******** ******@tk2msftn gp13.phx.gbl... have two Dropdownlist and one which is containing States and one containing Cities. I know how to do all the little databinding task in visual studios interface as well as set the relationship (parent, child, etc.). In the code behind file in page_load event I fill the data
adapter and databind the State dropdownlist. I also set the on_change event for the Cities dropdownlist after a state is selected. However, When I run this page in the browser the state dropdownlist populate with the States, but
after selecting a State the Cities dropdownlist DO NOTHING. What I'm I doing wrong? Could some one please send me some code that handle these action? I'm working with stored procedures from sql2000. Should I just set up a parameter procedure for the Cities dropdownlist (instead of Relationship in vs.net) and pass in the selected State?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Leon Shaw |
last post by:
have two Dropdownlist and one which is containing States and one
containing Cities. I know how to do all the little databinding task in
visual studios interface as well as set the relationship (parent, child,
etc.). In the code behind file in page_load event I fill the data adapter
and databind the State dropdownlist. I also set the on_change event for the
Cities dropdownlist after a state is selected. However, When I run this page
in the...
|
by: Leon Shaw |
last post by:
What is the best way to databind two related dropdownlist control in visual
studios.net using vb.net programming language and sql2000 stored procedures?
|
by: JV |
last post by:
It's easy to databind a listbox or dropdownlist if all you want is to fill
it with a list of values. There are plenty of examples in the online help.
Unfortunately, real world applications demand more. Usually you would also
like to bind the SelectedValue to something else. Common scenario:
You have an ADDRESS table with a foreign key to a STATE table. You join on
an integer or uniqueidentifier key value, but the STATE table is what...
|
by: Joe Gass |
last post by:
I'd like to bind some xml to a dropdownlist
<engines>
<engine name="test1" id="1" />
<engine name="test2" id="2" />
</engines>
If I do:
ddlEngines.DataSource = xmlDoc.SelectNodes("/engines/engine")
|
by: Nathan Sokalski |
last post by:
I have several DropDownList controls on my page that use databinding.
However, I want to give users the option of selecting a choice such as "None
Selected" or something else that shows they did not make a selection.
However, if I attempt to add a ListItem to the Items collection when
databinding is used it is removed and replaced by the item in the
databinding source. Is there any simple way to add an extra ListItem, or do
I have to build...
| |
by: Simon Gregory |
last post by:
I am currently attempting to figure out how the new databinding
stucture works in ASP.NET 2.0 after working with v1.0 & v1.1 for
several years.
It seems that if you wish to do set up databinding at Design Time, you
are restricted to using one of the 5 xxxDataSource controls.
The data in our websites are usually obtained via a set of webservices
and are contained in a set of strongly typed relational DataSets.
|
by: CorporateCoder |
last post by:
Hi,
I am trying to bind the selected value of a databound dropdown box in a
databound gridview control to the value being displayed in the template
column the dropdown box has been added to. Both the grid and the dropdown
box are retrieving and displaying data fine, I just cant bind the two
together.
I followed the instructions in the help document called 'Walkthrough:
Displaying a Drop-Down List While Editing in the GridView Web...
|
by: brian.newman |
last post by:
I've created a dropdownlist whose values are drawn from an Access
database. This list of items represents a user account. In the same
record is a boolean field which records whether the user is an
administrator.
On my web form, I want a checkbox labelled "Is Admin" which will take
the appropriate value from the Access database depending on which value
is chosen in the dropdownlist.
I'm using a checkboxlist in this case as it has...
|
by: =?Utf-8?B?cGhpbGptY2c=?= |
last post by:
I've seen this question asked 100 times, but with no reasonable answer, other
than to extend a control etc. Sorry if I'm going over old ground.
I've a DropDownList inside a FormView control, which is hooked up to a
GridView. The contents of the DropDownList are being built from an
ObjectDataSource using business objects. Problem is, I'm binding the
DropDownList's SelectedValue to a property of type int?, and and where adding...
|
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,...
|
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...
| |
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |