locked
Execute SQLDataSource Error RRS feed

  • Question

  • User-430413477 posted

    I get an error when executing this from the code behind page
    I just want to execute the SQL in the SQLDatasource.

    SqlDataSourceAudiosList.Select()

     The error is
    Argument not specified for parameter 'arguments' of 'Public Function Select(arguments As System.Web.UI.DataSourceSelectArguments) As System.Collections.IEnumerable'.

    I dont have any parameters.

    How do I execute the SQL in the datasource?

    Friday, August 9, 2013 4:24 PM

Answers

  • User-1716253493 posted

    Give empty argument

    SqlDataSourceAudiosList.Select(DataSourceSelectArguments.Empty)



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 9, 2013 8:10 PM

All replies

  • User-1716253493 posted

    Give empty argument

    SqlDataSourceAudiosList.Select(DataSourceSelectArguments.Empty)



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 9, 2013 8:10 PM
  • User-430413477 posted

    Thanks. I would have never found that!

    Saturday, August 10, 2013 11:30 AM