/// <summary>
    /// Handles the Load event of the Page control.
    /// </summary>
    protected void Page_Load(object sender, EventArgs e)
    {
        CurrentMaster.BodyClass += " Buttons";

        // set button text
        btnOk.Text     = GetString("general.saveandclose");
        btnApply.Text  = GetString("general.apply");
        btnCancel.Text = GetString("general.cancel");

        chkRefresh.Text = GetString("Widget.Properties.Refresh");

        if (inline)
        {
            btnApply.Visible   = false;
            chkRefresh.Visible = false;
        }

        ltlScript.Text += ScriptHelper.GetScript(
            @"function GetRefreshStatus() {
    var refresh = document.getElementById('" + chkRefresh.ClientID + @"');
    if (refresh != null) {
        return refresh.checked;
    }
    return false;         
}");

        btnCancel.OnClientClick = FramesManager.GetCancelScript();
        btnApply.OnClientClick  = FramesManager.GetApplyScript();
        btnOk.OnClientClick     = FramesManager.GetOKScript();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        CurrentMaster.BodyClass += " Buttons";

        // set button text
        btnOk.Text     = GetString("general.ok");
        btnApply.Text  = GetString("general.apply");
        btnCancel.Text = GetString("general.cancel");

        btnCancel.OnClientClick = FramesManager.GetCancelScript();
        btnApply.OnClientClick  = FramesManager.GetApplyScript();
        btnOk.OnClientClick     = FramesManager.GetOKScript();

        if (inline)
        {
            btnApply.Visible = false;
        }
    }
    /// <summary>
    /// Load event handler
    /// </summary>
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);

        chkRefresh.Text = GetString("WebpartProperties.Refresh");

        ltlScript.Text += ScriptHelper.GetScript("function GetRefreshStatus() { return document.getElementById('" + chkRefresh.ClientID + "').checked; }");

        // Set button texts
        btnOk.Text     = GetString("general.saveandclose");
        btnApply.Text  = GetString("general.apply");
        btnCancel.Text = GetString("general.cancel");

        // Set button click events
        btnCancel.OnClientClick = FramesManager.GetCancelScript();
        btnApply.OnClientClick  = FramesManager.GetApplyScript();
        btnOk.OnClientClick     = FramesManager.GetOKScript();

        string action = QueryHelper.GetString("tab", "properties");

        switch (action)
        {
        case "properties":
            break;

        case "code":
            break;

        case "binding":
            chkRefresh.Visible = false;
            btnApply.Visible   = false;
            btnOk.Visible      = false;
            btnCancel.Text     = GetString("WebpartProperties.Close");
            break;
        }
    }