Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
// I have a dictionary with a class (UserClass) asvalue and a int as key private Dictionary<int, UserClass> createdBy; //I populate the DropDownList with the dictionary using datasource CreatorFilter.DataSource = createdBy; CreatorFilter.DataTextField = "Value"; CreatorFilter.DataValueField = "Key"; CreatorFilter.DataBind(); //When the user selects an item from the CreatorFilter Dropdownlist I want to get the UserClass object back to get access to its ID property // Tried this: Guid UserID = (UserClass)CreatorFilter.SelectedItem).ID; // But I get an error: // Cannot convert type 'System.Web.UI.WebControls.ListItem' to 'UserClass' // How can I access the UserClass object from the selected item in the dropdownlost?
|Signal R -send data to client: only if they are allowed to see it ?||1||49|
|Need help with building query string||2||19|
|jquery datatables, asp.net MVC||9||38|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
13 Experts available now in Live!