Adding Parameters in code, how?

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hi

asp.net 2.0

I have a ObjectDataSource which I in my code wants to create the
SelectParameters for.
(reason as this GridView is used on multiple pages and hence sometime
parameters will differ)

ObjectDataSource ods = (ObjectDataSource)LoginView1.FindControl("odsCars");
ods.SelectParameters.Add(new Parameter());

Problem, i don't know what arguments to send into the Paramer() constructor.
I want to define parameter name, default value (or value) and datatype

any suggestions?
 
Jeff said:
hi

asp.net 2.0

I have a ObjectDataSource which I in my code wants to create the
SelectParameters for.
(reason as this GridView is used on multiple pages and hence sometime
parameters will differ)

ObjectDataSource ods =
(ObjectDataSource)LoginView1.FindControl("odsCars");
ods.SelectParameters.Add(new Parameter());

Problem, i don't know what arguments to send into the Paramer()
constructor. I want to define parameter name, default value (or value) and
datatype

any suggestions?
 
Back
Top