Code:
<asp:SqlDataSource ID="sdsRgResult" runat="server" ConnectionString='<%$ ConnectionStrings:LCODLConnectionString %>'
SelectCommand="
Select command HERE ">
<SelectParameters>
<asp:ControlParameter Name="EntryBy" ControlID="hdnLoginName" />
<asp:ControlParameter Name="FromDate" ControlID="rdtFromDate" DefaultValue="01-01-1900 00:00:00" />
<asp:ControlParameter Name="ToDate" ControlID="rdtToDate" DefaultValue='<% DateTime.Now %>' />
</SelectParameters>
</asp:SqlDataSource>
Done:)
<asp:SqlDataSource ID="sdsRgResult" runat="server" ConnectionString='<%$ ConnectionStrings:LCODLConnectionString %>'
SelectCommand="
Select command HERE ">
<SelectParameters>
<asp:ControlParameter Name="EntryBy" ControlID="hdnLoginName" />
<asp:ControlParameter Name="FromDate" ControlID="rdtFromDate" DefaultValue="01-01-1900 00:00:00" />
<asp:ControlParameter Name="ToDate" ControlID="rdtToDate" DefaultValue='<% DateTime.Now %>' />
</SelectParameters>
</asp:SqlDataSource>
Done:)
Comments
Post a Comment