Hi All,
I have an ASP.NET page that displays a GridView control based on an
ObjectDataSource control.
I'm wondering if it's possible to base the ObjectDataSource in question
on a parameter query, with the ability to set the parameter value at
run time (in the Page_Load event, perhaps?)?
Basically, I'd like to display records in the GridView based on values
typed into a text box. So, I guess I'm looking to base the
ObjectDataSource on a SELECT query similar to:
SELECT column1, column2, column3 FROM table1 WHERE column1 = @col1val;
Can anyone tell me if it's possible to set a parameter for an
ObjectDataSource at runtime, and how you'd do that if it is possible?
Many thanks in avance!
Much warmth,
planetthoughtful
---
"Lost in thought"
http://www.planetthoughtful.org