You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > BusinessRules Class
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
BusinessRules Class
C#
[DefaultProperty("Text")]
[ToolboxData("<{0}:BusinessRules runat=server></{0}:BusinessRules>")]
public class BusinessRules : EkWebControl;
Visual Basic
<DefaultProperty("Text")>
<ToolboxData("<{0}:BusinessRules runat=server></{0}:BusinessRules>")>
Public Class BusinessRules
Inherits EkWebControl

BusinessRules.cs

Business Rules allow you to define conditions for Web pages on your site. You choose an action based on whether the conditions are true or false when a site visitor browses your site. For example:

  • Condition - a site visitor visits your site for the first time
  • Action - add a cookie to the site visitor’s system and pop up a welcome message

With Business Rules, you do not write code to set conditions and initiate actions. You simply complete the information requested in the Business Rules wizard within the workarea, have your developer add a Business Rules server control to your Web form, and assign the server control the Business Rules Ruleset. 

 

.NET Assemblies BusinessRule API vs. BusinessRules Server Control API

The .NET Assemblies BusinessRule API allows you to work with results of a Business Rule. The BusinessRules server control API allows you to customize how and where a Business Rule is used on a Web page. 

To learn about the .NET Assemblies BusinessRule API, click here.

Name 
Description 
The methods of the BusinessRules class are listed here. 
The properties of the BusinessRules class are listed here. 
 
Name 
Description 
 
Fill 
Overrideable method that can be used to grab data from the back end for each server control.  
 
Wrap 
Overrideable method that can be used to wrap an Ektron toolbar corresponding to a particular Control around some Html text.  
 
Name 
Description 
 
User Defined parameters that can be evaluated in rules.  
 
An array of boolean values representing the results of the evaluations.  
 
The ID number of the Ruleset to evaluate.  
 
Text 
Allows a developer to treat the server control as a Label, taking information from the Control and painting it on top of the Control for display. Leave blank for default display.  
 
Overridden and hidden - should not be wrapped by span  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!