Example #1
0
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();

            container.Controls.Add(templatePlaceHolder);

            Obout.Interface.OboutButton btnUpdate = new Obout.Interface.OboutButton();
            btnUpdate.ID            = "BtnUpdate";
            btnUpdate.Text          = "Save";
            btnUpdate.OnClientClick = "if(Page_ClientValidate() == true){Grid1.save();} return false;";
            btnUpdate.Width         = 75;

            Obout.Interface.OboutButton btnCancele = new Obout.Interface.OboutButton();
            btnCancele.ID            = "BtnCancel";
            btnCancele.Text          = "Cancel";
            btnCancele.OnClientClick = "Grid1.cancel(); return false;";
            btnCancele.Width         = 75;

            templatePlaceHolder.Controls.Add(btnUpdate);
            templatePlaceHolder.Controls.Add(btnCancele);
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();
            container.Controls.Add(templatePlaceHolder);

            Obout.Interface.OboutButton btnUpdate = new Obout.Interface.OboutButton();
            btnUpdate.ID = "BtnUpdate";
            btnUpdate.Text = "Save";
            btnUpdate.OnClientClick = "if(Page_ClientValidate() == true){Grid1.save();} return false;";
            btnUpdate.Width = 75;

            Obout.Interface.OboutButton btnCancele = new Obout.Interface.OboutButton();
            btnCancele.ID = "BtnCancel";
            btnCancele.Text="Cancel";
            btnCancele.OnClientClick = "Grid1.cancel(); return false;";
            btnCancele.Width = 75;

            templatePlaceHolder.Controls.Add(btnUpdate);
            templatePlaceHolder.Controls.Add(btnCancele);
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();
            container.Controls.Add(templatePlaceHolder);

            Literal spanButton1 = new Literal();
            spanButton1.Text = "<span id=\"PreviousButtonContainer\" style=\"display: none;\">";

            Obout.Interface.OboutButton previousButton = new Obout.Interface.OboutButton();
            previousButton.ID = "OboutButton1";
            previousButton.Text = "Back";
            previousButton.OnClientClick = "moveToPreviousStep(); return false"; 

            Literal endspanButton1 = new Literal();
            endspanButton1.Text = "</span>";

            Literal spanButton2 = new Literal();
            spanButton2.Text = "<span id=\"NextButtonContainer\">";

            Obout.Interface.OboutButton nextButton = new Obout.Interface.OboutButton();
            nextButton.ID = "OboutButton2";
            nextButton.Text = "Next";
            nextButton.OnClientClick = "moveToNextStep(); return false"; 

            Literal endspanButton2 = new Literal();
            endspanButton2.Text = "</span>";

            Literal spanButton3 = new Literal();
            spanButton3.Text = "<span id=\"SaveButtonContainer\" style=\"display: none;\">";
                
            Obout.Interface.OboutButton saveButton = new Obout.Interface.OboutButton();
            saveButton.ID = "OboutButton3";
            saveButton.Text = "Save";
            saveButton.CommandName = "Insert"; 

            Literal endspanButton3 = new Literal();
            endspanButton3.Text = "</span>";

            templatePlaceHolder.Controls.Add(spanButton1);
            templatePlaceHolder.Controls.Add(previousButton);
            templatePlaceHolder.Controls.Add(endspanButton1);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(spanButton2);
            templatePlaceHolder.Controls.Add(nextButton);
            templatePlaceHolder.Controls.Add(endspanButton2);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(spanButton3);
            templatePlaceHolder.Controls.Add(saveButton);
            templatePlaceHolder.Controls.Add(endspanButton3);
        }