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

后端 未结 10 666
耶瑟儿~
耶瑟儿~ 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 01:00

    I love Al W's answer. There's a typo though.

    
    

    --- Should be ---

    
    

    Hopefully, this saves someone a few minutes.

提交回复
热议问题