ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Procedure or Function 'CRMDashboardSales' expects parameter '@CustBill', which was not supplied.
Why does SQL Server get this error when my SelectParameter is defined?Code for the grid's datasource:
<asp:SqlDataSource ID="gridsource2" runat="server"
ConnectionString="<%$ ConnectionStrings:crmDashboardConnectionString %>" ProviderName="<%$ ConnectionStrings:crmDashboardConnectionString.ProviderName %>"
SelectCommand="CRMDashboardSales" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="NamesDDL" Name="CustBill"
PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
The combo box data value contains CustBill column and is specified as the parameter to send to the stored procedure. I've also included the Ajax Manager code below for reference. Thx.
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
DefaultLoadingPanelID="RadAjaxLoadingPanel1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="NamesDDL">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="OrdersGrid" LoadingPanelID="AjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="NamesDDL" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>