I have an object datasource on a page which has several parameters all with no value set. When a user fills in a form i want to set this parameters with value from the form.

How do i set these values? I have tried:

odsData.UpdateParameters["param1"] = textbox.text;
but i get an error saying i cannot convert the value to a parameter type. Can i not send a value to the parameter which is of the right datatype (e.g. int, string etc)? Do I have to create an object of parameter type first?

cheers for any help/advice on this subject