I'm trying to dynamically change a webmethod when a user clicks a radio button. The event fires as it should and changes the property however, the webservice remains the same? Is this even possible? I've tried two methods:
if
(rbIPSearch.Checked)
{
cbofilter.Attributes[
"Method"] = "IPAddressLookup";
}
else
{
cbofilter.Attributes[
"Method"] = "FullOULookup";
}
AND
if
(rbIPSearch.Checked)
{
cbofilter.WebServiceSettings.Method =
"IPAddressLookup";
}
else
{
cbofilter.WebServiceSettings.Method =
"FullOULookup";
}
Neither seem to work?