humbleprogrammer
Programmer
Hi,
I am trying to pass a value to a DataSets CommandText. I am trying to pass a sort value. Below is my code but it's giving me an error that 'SortField' is not defined. Can someone help?
Thanks in advance!!
<SCRIPT language="VB">
Dim SortField
SortField = Request.QueryString("SortField"
</SCRIPT>
I am trying to pass a value to a DataSets CommandText. I am trying to pass a sort value. Below is my code but it's giving me an error that 'SortField' is not defined. Can someone help?
Thanks in advance!!
<SCRIPT language="VB">
Dim SortField
SortField = Request.QueryString("SortField"
</SCRIPT>
Code:
<MM:DataSet
id="dsSatisfaction"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_objConnMeritas") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_objConnMeritas") %>'
CommandText='<%# "SELECT * FROM qm ORDER BY " & SortField & " ASC" %>'
CurrentPage='<%# IIf((Request.QueryString("dsSatisfaction_CurrentPage") <> Nothing), Request.QueryString("dsSatisfaction_CurrentPage"), 0) %>'
PageSize="20"
Debug="true"
>
</MM:DataSet>