I have a Asprunner.net 8.1
I want to control the my menu item in order to show "Apousies" ling when the field Classin the dbo.Teacher is not empty.
I enter in the Eventpage at Menu Item:Modify the following code.
string strSQLExists = "select Class from dbo.Teacher where Class ='' ";
XVar rsExists = CommonFunctions.db_query(strSQLExists, null);
XVar data = CommonFunctions.db_fetch_array(rsExists);
if(data)
{
var title = menuItem.getTitle();
if (title == "Apousies")
{
return false;
}
}
return true;
IS NOT WORKING. Any advise?
THX