Author: keeperofstars | Posted on: 9/3/2009 2:07:47 PM | Views : 358

I am building a user control that basically has a drop down menu which gets employee names, and a radiobuttonlist which allows the user to select if the list shows Employeed, Terminated, or ALL employees. I have a class with 2 methods, Select and SelectActive(bool ActiveFlag)
If the person chooses All then the objectdatasource uses the SelectMethod= "Select" but if the user chooses Employeed / Terminated, the SelectMethod="SelectActive" I have that managed, but I need to add / remove The Select paramater at run time. Since my base Select is not paramatized.
How do I go about that. I currently have the selectparamater hardcoded in the ascx page, but want / need to do it dynamically.
Here is my current code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EmployeeDropDown.ascx.cs" Inherits="UserControls_EmployeeDropDown" %> <%@ Register assembly=& ...

Go to the complete details ...