Can you get a DataTable from an ObjectDataSource?

前端 未结 2 663
无人共我
无人共我 2021-01-23 01:01

If I have an ObjectDataSource defined at design time, can I get a DataTable from that ObjectDataSource at runtime? I have a method that returns a DataTable that I am using for

2条回答
  •  北海茫月
    2021-01-23 01:56

    I don't really understand your question... are you asking if the object you define in the ObjectDataSource can return a DataTable in the configured select method? Yes, I do it all the time. You can also examine the returned DataTable in the OnSelected event (it is the ReturnValue property of the event object).

提交回复
热议问题