Get Started!

CanvasApp

NetCanvas' CanvasApp, a global static class that has a number of helpers.

Namespace using & @import

The CanvasApp is exposed via the Net4orce.Core.Canvas namespace, requiring :

using Net4orce.Core.Canvas;

For C# / Code behind files, or :

<%@ Import namespace="Net4orce.Core.Canvas"%>

In the ASCX controls.

Methods & Properties

  • SerializeToJSON(obj) returns a JSON serialized string of the object passed.

  • DeSerializeFromJSON<T>(json) return an instance of type T deserialized from the passed json string. If the De-Serialization fails, a null value is returned.

  • DB exposes access to the Users, Sections & SiteSettings DataBases

  • cApplicationPath the root of the running application

  • oSiteSettings exposes the SiteSettings for running application, values can be altered via the /admin/sitesettings page for the applicaiton.

  • cHostName the host / domain the site is running under.