title: Assign values to ssis variable
body: <p>I am trying to assgin a value to a variable in script component using C# but unable to do so. Can anyone please post the code or tell me what wrong below.</p>
  
  <pre><code>public override void PostExecute()
  
      base.PostExecute();
      IDTSVariables100 varCollection = null;
      this.VariableDispenser.LockForWrite("User::Variable");
      this.VariableDispenser.GetVariables(out varCollection);
  
      varCollection["User::Variable"].Value = @"TESTING";
      MessageBox.Show(Variables.MerchOrgName.ToString());
  </code></pre>