Ask a Question related to ASP.NET General, Design and Development.
-
Tony #1
question on DropDownList control.
hi, a newbie question
I have two dropdownlist controls, one is for years, 2000-2003, the other is
for month, 1-12.
I am supposed to get all the data records in the selected year & month when
i click "submit" button, but the weird thing is I can only get the records
of 01/2000, no matter what year and month i selected from the drop down
list.
and when the page reloaded, the selected items in drop downlist set to year
2000 and month 1.
Who can give me a hint , what is wrong?
I am sure the sql is right.
Thank you so much!!
Tony Guest
-
Question about a user control derived from DropDownList
I posted this in a different group yesterday with no responses, so I'll try here. I have a simple control that is in a CS file (not ASCX). It is... -
dropdownlist control
I have a form which displays a number of text boxes that are all data bound to a dataset. I want to change one of these text boxes to be a drop... -
HELP! DropDownList Items property in composite control -- collection editor support question!
Hi, I have a composite web custom control consisting of a textbox, a button, and a dropdownlist.. I'm trying to expose the Items property from... -
binding datasource to dropdownlist control
I am being sent an ArrayList of ListItems. I can bind to a dropdownlist control using: oDropDownList.DataSource = oArrayList This works but... -
DropDownList control in DataGrid
Hello all, I'l displaying a dropdownlist inside a datagrid. The problem comes when I try to get the values the user chose on postback. If I... -
Tony #2
Re: question on DropDownList control.
am I use it correctly?
String Year = MyDropDownList.SelectedItem.ToString();
String Month = MyDropDownList2.SelectedItem.ToString();
"Tony" <gdxing@hotmail.com> wrote in message
news:Ous2fQrSDHA.3636@tk2msftngp13.phx.gbl...is> hi, a newbie question
> I have two dropdownlist controls, one is for years, 2000-2003, the otherwhen> for month, 1-12.
>
> I am supposed to get all the data records in the selected year & monthyear> i click "submit" button, but the weird thing is I can only get the records
> of 01/2000, no matter what year and month i selected from the drop down
> list.
>
> and when the page reloaded, the selected items in drop downlist set to> 2000 and month 1.
>
> Who can give me a hint , what is wrong?
> I am sure the sql is right.
>
> Thank you so much!!
>
>
Tony Guest
-
Teemu Keiski #3
Re: question on DropDownList control.
Do you set values declaratively or in code? If in code, you do that only on
initial request hat is not on postback?
--
Teemu Keiski
MCP,Designer/Developer
Mansoft tietotekniikka Oy
[url]http://www.mansoft.fi[/url]
AspInsiders Member, [url]www.aspinsiders.com[/url]
ASP.NET Forums Moderator, [url]www.asp.net[/url]
AspAlliance Columnist, [url]www.aspalliance.com[/url]
"Tony" <gdxing@hotmail.com> kirjoitti viestissä
news:ef9cTSrSDHA.1552@TK2MSFTNGP12.phx.gbl...records> am I use it correctly?
>
> String Year = MyDropDownList.SelectedItem.ToString();
>
> String Month = MyDropDownList2.SelectedItem.ToString();
>
> "Tony" <gdxing@hotmail.com> wrote in message
> news:Ous2fQrSDHA.3636@tk2msftngp13.phx.gbl...> is> > hi, a newbie question
> > I have two dropdownlist controls, one is for years, 2000-2003, the other> when> > for month, 1-12.
> >
> > I am supposed to get all the data records in the selected year & month> > i click "submit" button, but the weird thing is I can only get the> year> > of 01/2000, no matter what year and month i selected from the drop down
> > list.
> >
> > and when the page reloaded, the selected items in drop downlist set to>> > 2000 and month 1.
> >
> > Who can give me a hint , what is wrong?
> > I am sure the sql is right.
> >
> > Thank you so much!!
> >
> >
>
Teemu Keiski Guest



Reply With Quote

