﻿
/// <reference path="jquery-1.5.1.js"/>
/// <reference Name="MicrosoftAjax.js"/>

function SetHiddenControlValue(hiddenControlName, valueForHiddenControl) {
    /// <summary>This is used to set the value of a hidden control</summary>
    /// <param name="hiddenControlName">The name of the hidden control</param>
    /// <param name="valueForHiddenControl">This is the new value that the hidden control will hold.</param>

    //var myObject = jQuery(hiddenControlName);
    //myObject.val(valueForHiddenControl);
    //$(hiddenControlName).val = valueForHiddenControl;
    jQuery(hiddenControlName).val(valueForHiddenControl);

    return;
}
