How to secure your dynamic objects ?

Author: admin 114 views

Introduction

  • Winform: If you directly add a “Label” in your “Form” in your
    Constructor.

    Label lbl = new Label(); 
    lbl.Name = "mylabel"; 
    this.Controls.Add(lbl);
  • Webform: If you directly add a “Label” in your page in the “Page_Load” method.
    Label lbl = new Label(); 
    lbl.Name = "mylabel";
    this.Controls.Add(lbl);

#this.Controls['mylabel'].Visible = false

Specifications

  • Objects used in VGExpression must have their “Namespace”. (For example: New System.Windows.Forms.Label())
  • You can classify the execution order of the “Expressions” by using the “Up” and “Down” buttons


Usage

  1. Open a VGRepository
  2. Open an application
  3. Open a permission
  4. Create or edit a “Property Action”
  5. Go to “Select the component and edit the
    properties”
  6. Click “Add Expression”
  7. Submit your VGExpression
  8. Click “Finish”

Modifying a property of a dynamic object

  • #this.MyProperty = myValue
  • #this.MyObject.MyProperty = myValue


Calling an object method

  • #this.MyMethod()
  • #this.MyObject.MyMethod()


Restrictions

  • “ReadOnly” list: You cannot change a value in a list that is “ReadOnly”.