Ask a Question related to ASP.NET General, Design and Development.
-
Leon Shaw #1
Data Relationship binding
I 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?
Leon Shaw Guest
-
Data Binding
I have a webService, dataSet, comboBox and a sumbitButton. The combobox loads and displays Brands from my cfc. I press submit and look at the... -
Complex data binding question, binding child objects of a custom collection.
I have a custom collection of objects, each of which includes a child object called MyUserOpener. In declarative binding, I can bind this property... -
Binding Data
Currently, when I bind data to a DataGrid, I use a function as such: Dim conGrid As SqlClient.SqlConnection Dim daGrid As... -
Where's my mx.data.binding?
I bought and downloaded MX 2004 Professional, but it seems to be missing a whole folder of classes (not sure how this happened): I can't find... -
Many-to-Many Relationship Data Display in Forms
I have a many-to-many relationship between Books and Authors by ISBN and Author name. I.e. Books can have more than one Author, and Authors can be... -
Leon Shaw #2
Re: Data Relationship binding
But when doing things that way I get a System.Data.RelatedView message in
the child related (Cities) dropdownlist. What could I possibly be doing
wrong?
"Pete Wright" <pete@codemonkey.demon.co.uk> wrote in message
news:benc91$ogq$10$8302bc10@news.demon.co.uk...the> I'm not sure I have a very good handle on exactly what it is your code is
> doing, but your problem lies with how you've bound. Bind the cities drop
> down to the relationship, not the table. That way it should refresh whenadapter> state is changed.
>
> --
> Peter Wright
> Author of ADO.NET Novice To Pro, from Apress Inc.
>
>
> _____________________________
> "Leon Shaw" <vnality@msn.com> wrote in message
> news:%23lrsHFxRDHA.1868@TK2MSFTNGP11.phx.gbl...> > I 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 dataafter> the> > and databind the State dropdownlist. I also set the on_change event for> page> > Cities dropdownlist after a state is selected. However, When I run this> > in the browser the state dropdownlist populate with the States, but> handle> > selecting a State the Cities dropdownlist DO NOTHING.
> > What I'm I doing wrong? Could some one please send me some code that> in> > 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>> > vs.net) and pass in the selected State?
> >
> >
>
Leon Shaw Guest



Reply With Quote

