Can someone explain to me what I am doing wrong here. I have 2 textboxes "STDate" and "EDDate" and a button for downloading data to a csv file. However I keep on getting "Must declare scaler variable @STDate. I have configured the ControlParameter in the Select Parameter of the SQLDatasource so I'm a little confused why I keep on getting the line "Must declare scaler variable @StDate in my CSV File.
I'm pretty sure if it ever got past the 'declare scalar variable for @StDate it would throw an error for @EDDate. Luckly one I figure out what i'm doing wrong for the first one I can fix the second one.
Here is the ASP.net code:
<table style="width: 294%">
<td align="center" style="width: 1154px">
<asp:Label ID="Label1" runat="server" Text="Start Date"></asp:Label>
<asp:TextBox ID="STDate" runat="server"></asp:TextBox>
View Complete Post