G
Guest
What is the best way to pass a parameter to an ObjectDataSource.
I am able to add a new parameter to the SelectParameters, but I would like
to just assign a value to an existing parmeter at runtime.
Currently I am just adding the parameter at runtime and setting the value:
ObjectDataSource1.SelectParameters.Add("searchCCN", "")
I would like to accomplish the following:
ObjectDataSource1.SelectParameters.("LastName") = "Doe"
The code above does not work. There is no parameter.value, only
parameter.DefaultValue. Is there a better way to set an existing parameter
value in an ObjectDataSource?
Thanks,
I am able to add a new parameter to the SelectParameters, but I would like
to just assign a value to an existing parmeter at runtime.
Currently I am just adding the parameter at runtime and setting the value:
ObjectDataSource1.SelectParameters.Add("searchCCN", "")
I would like to accomplish the following:
ObjectDataSource1.SelectParameters.("LastName") = "Doe"
The code above does not work. There is no parameter.value, only
parameter.DefaultValue. Is there a better way to set an existing parameter
value in an ObjectDataSource?
Thanks,