What is the best way to pass a parameter to an ObjectDataSourc e.
I am able to add a new parameter to the SelectParameter s, 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:
ObjectDataSourc e1.SelectParame ters.Add("searc hCCN", "")
I would like to accomplish the following:
ObjectDataSourc e1.SelectParame ters.("LastName ") = "Doe"
The code above does not work. There is no parameter.value , only
parameter.Defau ltValue. Is there a better way to set an existing parameter
value in an ObjectDataSourc e?
Thanks,
I am able to add a new parameter to the SelectParameter s, 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:
ObjectDataSourc e1.SelectParame ters.Add("searc hCCN", "")
I would like to accomplish the following:
ObjectDataSourc e1.SelectParame ters.("LastName ") = "Doe"
The code above does not work. There is no parameter.value , only
parameter.Defau ltValue. Is there a better way to set an existing parameter
value in an ObjectDataSourc e?
Thanks,
Comment