Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Key from listbox
Message
De
17/03/2003 10:43:57
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00766542
Message ID:
00766560
Vues:
20
Hi Stephen,

Use this:
string ptPage = MmDropDownList2.SelectedValue.ToString() ;
~~Bonnie


>I have 2 columns in a list, Text for people to see and the key. How do I extract the KEY's value to pass to a new page? Below is what I'm trying'
>
>private void MmButton1_Click(object sender, System.EventArgs e)
>{
>string ptPage = MmDropDownList2.BindingSourceValueMember.ToString() ;
>string strURL = String.Concat("ptos.aspx?ptoapp=", ptPage );
>Response.Redirect(strURL);
>}
>
>In my address line I see :
>http://localhost/mmJumpStart/ptos.aspx?ptoapp=pi_applpg
>
>The pi_applpg is the column, not it's coresponding value.
>
>TIA
>
>__Stephen
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