J
Jason Huang
Hi,
Here is my SqlDataSource in my C#.2.0 aspx file:
<asp:SqlDataSource ID="SqlDataSourceA" runat="server" ConnectionString="<%$
ConnectionStrings:GConnectionStringA %>"
SelectCommand="SELECT TestNo, AcceptDate, status FROM TestForm
WHERE (AcceptDate BETWEEN @prAcceptDate AND @prAcceptDateEnd)"
ProviderName="<%$
ConnectionStrings:GConnectionStringA.ProviderName %>"
EnableViewState="False">
<SelectParameters>
<asparameter Name="prAcceptDateStart" />
<asparameter Name="prAcceptDateEnd" />
</SelectParameters>
</asp:SqlDataSource>
In the same aspx file I have DropDownList controls ddlStartYear,
ddlStartMonth, ddlStartDay, ddlEndYear, ddlEndMonth, and ddlEndDay.
My question is how do I let the Parameter prAcceptDateStart to be the
combination of ddlStartYear+ddlStartMonth+ddlddlStartDay?
Thanks for hlep.
Jason
Here is my SqlDataSource in my C#.2.0 aspx file:
<asp:SqlDataSource ID="SqlDataSourceA" runat="server" ConnectionString="<%$
ConnectionStrings:GConnectionStringA %>"
SelectCommand="SELECT TestNo, AcceptDate, status FROM TestForm
WHERE (AcceptDate BETWEEN @prAcceptDate AND @prAcceptDateEnd)"
ProviderName="<%$
ConnectionStrings:GConnectionStringA.ProviderName %>"
EnableViewState="False">
<SelectParameters>
<asparameter Name="prAcceptDateStart" />
<asparameter Name="prAcceptDateEnd" />
</SelectParameters>
</asp:SqlDataSource>
In the same aspx file I have DropDownList controls ddlStartYear,
ddlStartMonth, ddlStartDay, ddlEndYear, ddlEndMonth, and ddlEndDay.
My question is how do I let the Parameter prAcceptDateStart to be the
combination of ddlStartYear+ddlStartMonth+ddlddlStartDay?
Thanks for hlep.
Jason