SelectCommand="SELECT [DeptAbbr] FROM [DeptMaster] where DeptAbbr =<%cmbDeptAbbr.SelectedItem.Text%> ORDER BY [DeptCode]"> in the cmbDeptAbbr.SelectedItem.Text its show error , am I defined correctly ?
ControlParameter
<asp:SqlDataSource id="DeptSqlDataSource" runat="server" connectionstring="<%$ ConnectionStrings:PMSConnectionString %>" selectCommand="SELECT [DeptAbbr] FROM [DeptMaster] WHERE DeptAbbr = @DeptAbbr ORDER BY [DeptCode]" > <SelectParameters> <asp:ControlParameter Name="DeptAbbr" ControlId="cmbDeptAbbr" PropertyName="SelectedValue" /> </SelectParameters> </asp:SqlDataSource>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)