locked
how examine the values of the properties of the object returned by the selectmethod of the objectdatasource? RRS feed

  • Question

  • User1024025087 posted

    how examine the values of the properties of the object returned by the select method of the objectdatasource

    Saturday, December 10, 2011 4:45 AM

Answers

  • User3866881 posted

    how examine the values of the properties of the object returned by the select method of the objectdatasource

    If you want to fetch the result from ObjectDataSource,you can have a try like this:

    Suppose your ObjectDataSource's select method is binded with a result of IEnumerable<T>——now you can try:

    IEnumerable<T> collection = (IEnumerable<T>)ObjectDataSource.Select();

    And then you can do what you want。

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, December 11, 2011 8:28 PM