protected void btnReset_Click(object sender, EventArgs e)
    {
        ViewState["relationPara"]       = null;
        ViewState["relationTbl"]        = null;
        ViewState["relationClmn"]       = null;
        ViewState["baseTblClmn"]        = null;
        ViewState["joinSelectionPara"]  = null;
        ViewState["selectedTbl"]        = null;
        ViewState["selectedTblRelPara"] = null;
        lblJoin.Text             = "";
        cmbRlTable.SelectedIndex = 0;
        cmbTable.SelectedIndex   = 0;
        cmbBaseTblClmn.Items.Clear();
        RelationFieldNameList.Items.Clear();
        cmbRlColumn.Items.Clear();
        joinSelectedTable.Items.Clear();
        ckSelectAllBase.Visible = false;
        ckSelectAllRel.Visible  = false;

        List <string> EMPTY = new List <string>();

        FieldNameList.ClearSelection();
        FieldNameList.DataSource = EMPTY;
        FieldNameList.DataBind();

        SQLQueryText.Enabled  = true;
        SQLQueryText.Text     = null;
        ResultGrid.DataSource = null;
        ResultGrid.DataBind();
        lblError.Text = "";

        ViewState["count"] = null;
        ViewState["filedSelectionPara"] = null;
        ViewState["conditionalOpPara"]  = null;
        ViewState["txtValuesPara"]      = null;
        ViewState["ConditionPara"]      = null;
        ViewState["wherePara"]          = null;
        lblWhereTxt.Text     = "";
        btnResetCond.Visible = false;
        conditionTbl.Items.Clear();
        conditionTblClm.Items.Clear();
        conditionalOpCB.SelectedIndex = 0;
        txtValues.Text = "";
        conditionAndOr.SelectedIndex = 0;
        OrderbyList.Items.Clear();
        Session["SelectedData"] = null;
    }