// Authors:
// Lluis Sanchez Gual (lluis@novell.com)
//
-// (C) 2004 Novell, Inc (http://www.novell.com)
+// (C) 2004-2010 Novell, Inc (http://www.novell.com)
//
//
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
protected virtual HierarchicalDataSourceView GetData (string viewPath)
{
- if (DataSource != null && DataSourceID != "")
+ if (DataSource != null && !String.IsNullOrEmpty (DataSourceID))
throw new HttpException ();
IHierarchicalDataSource ds = GetDataSource ();
if (ds != null)
}
bool IsDataBound {
- get {
- return ViewState.GetBool ("DataBound", false);
- }
- set {
- ViewState ["DataBound"] = value;
- }
+ get { return ViewState.GetBool ("DataBound", false); }
+ set { ViewState ["DataBound"] = value; }
}
protected void MarkAsDataBound ()
}
}
}
-#endif
+