willdevelope
Programmer
Here is my select statement and it works. Just don't know how to validate if data don't exist by displaying mesage
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStringsyxinventoryConnectionString %>"
onselecting="SqlDataSource1_Selecting"
**********HERE IS MY SELECT QUERY STATEMENT*******
SelectCommand="SELECT [ItemDesc], [Att1], [Att2], [LotCode], [SOHQty], [Count1], [Count2], [Count3], [Variance], [ReportUpdated], [Location] FROM [VarianceReport] WHERE ([ItemNum] = @ItemNum)">
<SelectParameters>
*************************************************** <asp:FormParameter FormField="TxtVarReport" Name="ItemNum" Type="String" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStringsyxinventoryConnectionString %>"
onselecting="SqlDataSource1_Selecting"
**********HERE IS MY SELECT QUERY STATEMENT*******
SelectCommand="SELECT [ItemDesc], [Att1], [Att2], [LotCode], [SOHQty], [Count1], [Count2], [Count3], [Variance], [ReportUpdated], [Location] FROM [VarianceReport] WHERE ([ItemNum] = @ItemNum)">
<SelectParameters>
*************************************************** <asp:FormParameter FormField="TxtVarReport" Name="ItemNum" Type="String" />