public static object ReturnValue(string ObjectName, HttpSessionStateBase session) { DataDetails DD = null; string dataobname = System.Text.RegularExpressions.Regex.Split(ObjectName, "\\.")[0]; DataObjects ScriptDataObject = (DataObjects)SessionControl.SessionManager.GetDataObject(session, dataobname); DD = ScriptDataObject.ReturnObjectDetail(ObjectName, ScriptDataObject.Details); if (DD != null) { return(DD.DetailValue); } return(DD); //else //{ // if (DD.Collection) // { // return DD.SubDetails; // } // return DD.DetailValue; //} }
public bool IsDataObject(string ObjectName, HttpSessionStateBase session) { DataDetails DD = null; string dataobname = System.Text.RegularExpressions.Regex.Split(ObjectName, "\\.")[0]; DataObjects ScriptDataObject = (DataObjects)SessionControl.SessionManager.GetDataObject(session, dataobname); DD = ScriptDataObject.ReturnObjectDetail(ObjectName, ScriptDataObject.Details); if (DD == null) { return(false); } else { if (DD.DetailType == "Object") { return(true); } else { return(false); } } }
public static List <DataObjects> ReturnObjects(string ObjectName, HttpSessionStateBase session) { DataDetails DD = null; string dataobname = System.Text.RegularExpressions.Regex.Split(ObjectName, "\\.")[0]; DataObjects ScriptDataObject = (DataObjects)SessionControl.SessionManager.GetDataObject(session, dataobname); DD = ScriptDataObject.ReturnObjectDetail(ObjectName, ScriptDataObject.Details); return(null); //if (DD == null) //{ // return null; //} //else //{ // return DD.objCollection; //} }