<asp:AccessDataSource ID="AccessDataSource2" runat="server"
DataFile="~/App_Data/Providers.accdb"
SelectCommand="SELECT [First_Name],[Last_Name],[Prof_Designation], [Specialty], [Specialty2],[Address], [Address2], [City], [State], [Zip], [Phone], [Fax], [lat], [lng] FROM [tbl_Providers] WHERE
(@First_Name IS NULL OR First_Name LIKE '%' + @First_Name + '%') AND
(@Last_Name IS NULL OR Last_Name LIKE '%' + @Last_Name + '%') AND
(@Specialty IS NULL OR Specialty LIKE '%' + @Specialty + '%') AND
(@Zip IS NULL OR Zip LIKE '%' + @Zip + '%')"
CancelSelectOnNullParameter="False">
<SelectParameters>
<asp:ControlParameter ControlID="providerTextBox" Name="First_Name" PropertyName ="Text" Type="String" ConvertEmptyStringToNull ="true" />
<asp:ControlParameter ControlID="providerTextBox" Name="Last_Name" PropertyName ="Text" Type="String" ConvertEmptyStringToNull ="true" />
<asp:ControlParameter ControlID="specialityDropDown" Name="Specialty" PropertyName ="SelectedValue" Type="String" ConvertEmptyStringToNull ="true" />
<asp:ControlParameter ControlID="txtZipCode" Name="Zip" PropertyName ="Text" Type="String" ConvertEmptyStringToNull ="true" />
</SelectParameters>
|