Showing posts with label dropdownlist1. Show all posts
Showing posts with label dropdownlist1. Show all posts

Thursday, March 22, 2012

taking the value from dropdownlist

Hi,
I'd like to ask how could be taken the value from DropDownList and to
appropriate it to
cmd.Parameters["@dotnet.itags.org.CITY"].Value = DropDownList1.....
I know that it must be something like this above.
Could you help me!
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a.cdm is SqlCommand
@.CITY is VARCHAR(20)
Thanks!
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a.
DropDownList.SelectedItem.Value
should return the id, and if you want the text, use Text instead of value
"Viktor Popov" wrote:

> Hi,
> I'd like to ask how could be taken the value from DropDownList and to
> appropriate it to
> cmd.Parameters["@.CITY"].Value = DropDownList1.....
> I know that it must be something like this above.
> Could you help me!
>
> --
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a.
>
>

taking the value from dropdownlist

Hi,
I'd like to ask how could be taken the value from DropDownList and to
appropriate it to
cmd.Parameters["@dotnet.itags.org.CITY"].Value = DropDownList1.....

I know that it must be something like this above.

Could you help me!

--
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a.cdm is SqlCommand
@.CITY is VARCHAR(20)

Thanks!

--
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a.