protected void hdnButton_Click(object sender, EventArgs e)
    {
        string script = CMSDialogHelper.GetLinkItem(GetSelectedItem());

        if (!String.IsNullOrEmpty(script))
        {
            ScriptHelper.RegisterStartupScript(Page, typeof(Page), "insertItemScript", ScriptHelper.GetScript(script));
        }
    }