Hi,
(ASP.net 2.0)
I have a gridview select statement as such
SelectCommand="SELECT * FROM ABFS ORDER BY [indx]"
I added a select parameter
<code>
<SelectParameters>
<asp:QueryStringParameter QueryStringField="tbl" Name="tbl" Type="object" /> ' even tried type of string
</SelectParameters>
</code>
I modified the select clause as such.
SelectCommand="SELECT * FROM [@tbl] ORDER BY [indx]"
I want to be able to pass in a querystring value as the table name will change.
The error I get is: Invalid object name '@tbl'.
Any Ideas.
Thanks
(ASP.net 2.0)
I have a gridview select statement as such
SelectCommand="SELECT * FROM ABFS ORDER BY [indx]"
I added a select parameter
<code>
<SelectParameters>
<asp:QueryStringParameter QueryStringField="tbl" Name="tbl" Type="object" /> ' even tried type of string
</SelectParameters>
</code>
I modified the select clause as such.
SelectCommand="SELECT * FROM [@tbl] ORDER BY [indx]"
I want to be able to pass in a querystring value as the table name will change.
The error I get is: Invalid object name '@tbl'.
Any Ideas.
Thanks