How to pass a variable to the SelectCommand of a SqlDataSource?

后端 未结 10 658
耶瑟儿~
耶瑟儿~ 2020-12-01 00:37

I want to pass variable from the code behind to the SelectCommand of a SqlDataSource?

I don\'t want to use built-in parameter types (like ControlParameter, QueryStri

10条回答
  •  死守一世寂寞
    2020-12-01 00:40

    You need to define a valid type of SelectParameter. This MSDN article describes the various types and how to use them.

提交回复
热议问题