Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UserAdmin breaks when dropped in Master File
Message
 
À
31/03/2010 08:25:24
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01455136
Message ID:
01458360
Vues:
49
Frank,

As it turns out this is an issue with ASP.NET. The code that retrieves the value from the ListBox really should work, but doesn't when you include the page inside a master page. To get this to work properly, you just need to add one line of code to lstUsers_SelectedIndexChanged():
try
{
    this.lstUsers.SelectedValue = Request.Form[lstUsers.UniqueID];
    UserPk = this.lstUsers.SelectedValue;
}
Obviously, you can change this to one line of code and simply retrieve the value using Request.Form[] and then store the value in the UserPK variable.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform