Last post Aug 08, 2011 09:38 AM by sjnaughton
Aug 08, 2011 09:08 AM|christoph_D|LINK
I have a DD project including some custom pages like an entry page displaying different "statistics". One of this informations shows the number of users who are not assigned to a specific project. Due to my model, this are all users who have not set a Project
ID (Foreign Key to Project Table).
I want to build a hyperlink that forwards to the List.aspx Page of the Users, only showing all not assigned Users. The link to show all Users assigned to a specific Project would be:
But how to filter on Users who are not yet assigned to a project, like:
Aug 08, 2011 09:24 AM|chandrashekar|LINK
Do not pass anything to the list page then it would be requesting for all users. If you pass the project id then show the users for the project.
If(Request.QueryString["ProductID"] == null)
//List all users.
//Logic to display users specific to the project.
Aug 08, 2011 09:38 AM|sjnaughton|LINK
What ever you decide to do you must set the filter to the [Not Set] value in the DDL
// Set the initial value if there is one
string initialValue = DefaultValue;
DropDownList1.SelectedValue = initialValue;
This code is where the value is set you will need to test for your special value forst then set the selected value to NullValueString.