Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UserAdmin breaks when dropped in Master File
Message
 
To
31/03/2010 08:25:24
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01455136
Message ID:
01458360
Views:
48
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform