Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't store data to a drop down list
Message
De
04/04/2007 12:29:17
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01210953
Message ID:
01212074
Vues:
18
Gerard,

I haven't checked this out (don't currently have a web project open), but according to the docs, there *is* a .Text property for the DropDownList ... maybe it just doesn't show up in Intellisense? However, I suggest that you try this instead:
  DOC_MAN.SelectedItem.Text = "ANYTHING";
Just a guess ...

~~Bonnie

>Hi
>
>I have a web form with a Drop Down List(DOC_TYPE) which is populated from a table. The populating etc is working fine
>Storing data to the table in insert,update is ok. I use
> DOC_TYPE.SelectedValue
>
>But when I try to go the other way (Store the Table value to the Form Field)
> DOC_MAN.Selectedtext = "ANYTHING";
>
>There is no DOC_TYPE.Text so I cant use that ?
>
>It blows out the Web Page and does not load
>
>Any Ideas ?
>
>Regards,
>Gerard
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform