SaturnSeven
Programmer
I'm just starting out with ASP.net
I managed to get a single text box, a SQLDataSource and Gridview working together i.e. enter a value and the Gridview reflects the input and the SQL
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStringsBConnectionString %>"
SelectCommand="SELECT [field1] AS Field1, [field2] AS Field2, FROM
WHERE ([field1] = @Field1)">
<SelectParameters>
<asp:ControlParameter ControlID="txtInput" Name="Field1" PropertyName="Text" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
But how do I set say 4 text boxes for various criteria? But so that the gridview works if any if the text boxes are entered and not all of them
Any guidence or examples would be great
I managed to get a single text box, a SQLDataSource and Gridview working together i.e. enter a value and the Gridview reflects the input and the SQL
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStringsBConnectionString %>"
SelectCommand="SELECT [field1] AS Field1, [field2] AS Field2, FROM
<SelectParameters>
<asp:ControlParameter ControlID="txtInput" Name="Field1" PropertyName="Text" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
But how do I set say 4 text boxes for various criteria? But so that the gridview works if any if the text boxes are entered and not all of them
Any guidence or examples would be great