473,385 Members | 1,934 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,385 software developers and data experts.

databinding

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?
Nov 17 '05 #1
6 2139
CT
Is the on_change event posted back to the server?

--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Leon Shaw" <vn*****@msn.com> wrote in message
news:%2****************@TK2MSFTNGP11.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?

Nov 17 '05 #2
yes, but when it post back, it post back with no results. do need to see the
code behind code?
"CT" <ca******@spammersgowaydotnetservices.biz> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Is the on_change event posted back to the server?

--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Leon Shaw" <vn*****@msn.com> wrote in message
news:%2****************@TK2MSFTNGP11.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?


Nov 17 '05 #3
Wait do you mean controlName_SelectedIndexChanged event and autopostback =
true?

"CT" <ca******@spammersgowaydotnetservices.biz> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Is the on_change event posted back to the server?

--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Leon Shaw" <vn*****@msn.com> wrote in message
news:%2****************@TK2MSFTNGP11.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?


Nov 17 '05 #4
Are you going to post this every day?

"Leon Shaw" <vn*****@msn.com> wrote in message
news:#U**************@TK2MSFTNGP11.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?

Nov 17 '05 #5
until I get some help sir. willing to help?
"David Waz..." <dl*@pickpro.com> wrote in message
news:tB********************@newssvr11.news.prodigy .com...
Are you going to post this every day?

"Leon Shaw" <vn*****@msn.com> wrote in message
news:#U**************@TK2MSFTNGP11.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?


Nov 17 '05 #6
Thanks MAN, I got together, but your comments was not helpful.
"David Waz..." <dl*@pickpro.com> wrote in message
news:lM********************@newssvr11.news.prodigy .com...
READ man,
I've posted several times on your issue.

Do you want us to write it for you too?
"Leon Shaw" <vn*****@msn.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
until I get some help sir. willing to help?
"David Waz..." <dl*@pickpro.com> wrote in message
news:tB********************@newssvr11.news.prodigy .com...
Are you going to post this every day?

"Leon Shaw" <vn*****@msn.com> wrote in message
news:#U**************@TK2MSFTNGP11.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?
>
>



Nov 17 '05 #7

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

Similar topics

3
by: Kevin Swanson | last post by:
I'm writing what should be a very simple app against an Oracle database. The app has a number of user controls, any one of which is loaded into a main display page using the loadControl method,...
3
by: John Bailey | last post by:
When I first built a few web pages in ASP .Net 2.0, I thought it was great. The formview and detailview contorls would automatically layout the controls for you, the update methods were...
4
by: Nathan Sokalski | last post by:
I have two databinding expressions (the first & last names from a DB) that I want to assign to the text property of a Label so that the result is LASTNAME,FIRSTNAME. At the moment, I have the...
9
by: Dennis | last post by:
I have tried using Databinding for my application but always seem to find it very restrictive (maybe I don't completely understand it enough). I always seem to find it much easier to display a...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
0
by: Wayne Sepega | last post by:
I have the following Object DataSource <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetCustomer" TypeName="Customers" DataObjectTypeName="Customer"...
9
by: J055 | last post by:
Hi I have a very simple configuration of the GridView with paging and sorting. When I do a postback the DataBinding event fires twice - in both the ProcessPostData and PreRender stages of the...
1
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. ...
8
by: Dirk | last post by:
Hello, I have a problem to use databinding with my business layer classes. My data class does not have simple properties (string, int or datetime), instead, all my properties are objects of the...
1
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I want to know if DataBinding in asp.net 2,0 is better than to fill up the values of the controls of the following form: this.miControlTextBox.Text = valorParaControlTextbox; ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.