Example #1
0
        /// <summary>
        /// Handles the Click event of the btnRefresh control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void btnRefresh_Click(object sender, EventArgs e)
        {
            string param = Request["__EVENTARGUMENT"];

            string[] mas = param.Split(new string[] { "_" }, StringSplitOptions.RemoveEmptyEntries);
            if (mas.Length != 2)
            {
                return;
            }
            try
            {
                MultiReferenceObject mro = new MultiReferenceObject(mas[0], int.Parse(mas[1]));
                Value = mro;
            }
            catch { }
        }
Example #2
0
        protected void btnRefresh_Click(object sender, EventArgs e)
        {
            string param = Request["__EVENTARGUMENT"];

            string[] mas = param.Split(new string[] { "_" }, StringSplitOptions.RemoveEmptyEntries);
            if (mas.Length != 2)
                return;
            try
            {
                MultiReferenceObject mro = new MultiReferenceObject(mas[0], PrimaryKeyId.Parse(mas[1]));
                Value = mro;
            }
            catch { }
        }