Re: FormView DropdownList - On Selection Change populate Text Box

On Mar 28, 3:44=A0pm, Satish <Sat... [at] discussions.microsoft.com> wrote:
> C#, ASP.NET
> Q: Have a formview, with a dropdownlist which is bound to a column. This
> dropdownlist has a datasource of DataSet type. Now my objective is, on
> Selection Changed of this DropdownList, I need to populate a couple of
> TextBox's. How can I do this? What event does the code go into? The
> selectionindexchanged even for the DropDownList does not seem to fire.
>
> Any help is appreciated.
>
> Thanks in advance.

why not use javascipt?
if you have element, for example, like this:
<select id=3D"selectDriveList"
onchange=3D"change_drive(this.options[this.selectedIndex].va lue);">
<option .....>
<option ....>
</select>

then javascript:
<script>
function change_drive( drive_letter )
{
document.getElementById("textTextBox1").value =3D"user selected " +
drive_letter;
}
</script>

no?


=2E.. more at http://www.siccolo.com/articles.asp
claritymedispa [ Sa, 29 März 2008 21:56 ] [ ID #1931433 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Re: FormView DropdownList - On Selection Change populate Text Box

Vorheriges Thema: totally confiused.. i need help
Nächstes Thema: Re: RegExp Again!