Skip to main content
Tweeted twitter.com/#!/StackSharePoint/status/310519046556766209
deleted 498 characters in body
Source Link
Batistuta
  • 708
  • 1
  • 11
  • 39

enter image description here

ISolved haveto puttedadd allfrom the designdropdownlist,checkboxlist in a updatapanel but the old anyway donttextbox displays.....................multiple


    protected void ButtonAddDataBase_Click(object sender, switchEventArgs (DropDownListDataBase.SelectedItem.Valuee)
        {
            case "MS SQL Server":
               string TextBoxResultDataBaseSkills.TextdropDownListValue =  DropDownListDataBase.SelectedItem.Value;
             resultValue += " break;";
            case "MSSQL":
                TextBoxResultDataBaseSkills.Text =+= DropDownListDataBase.SelectedItemEnvironment.Value;
                break;
            case "MS Access":NewLine;
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
           += dropDownListValue + " - break;
";

        } 


        foreach (varListItem xitem in CheckBoxListDataBase.SelectedItem.ValueItems)
        {
            if (CheckBoxListDataBase.SelectedItemitem.ValueText == "Beginner" && item.Selected)

                TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfoitem.InvariantCulture);Text; 
            else
            {

                if (CheckBoxListDataBase.SelectedItemitem.ValueText == "Medium" && item.Selected)

                    TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfoitem.InvariantCulture);Text;
                else
                {

                    if (CheckBoxListDataBase.SelectedItemitem.ValueText == "Expert" && item.Selected)

                        TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfoitem.InvariantCulture);Text;
                }
            }
        }
            
    }

// Is there any wrong with this code?

enter image description here

I have putted all the design in a updatapanel but the old anyway dont displays.....................
        switch (DropDownListDataBase.SelectedItem.Value)
        {
            case "MS SQL Server":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MSSQL":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MS Access":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;


        }

        foreach (var x in CheckBoxListDataBase.SelectedItem.Value)
        {
            if (CheckBoxListDataBase.SelectedItem.Value == "Beginner")

                TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
            else
            {

                if (CheckBoxListDataBase.SelectedItem.Value == "Medium")

                    TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                else
                {

                    if (CheckBoxListDataBase.SelectedItem.Value == "Expert")

                        TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                }
            }
        }
            
    }

// Is there any wrong with this code?

Solved to add from  dropdownlist,checkboxlist in a textbox multiple


    protected void ButtonAddDataBase_Click(object sender, EventArgs e)
    {
        string dropDownListValue =  DropDownListDataBase.SelectedItem.Value;
         resultValue += " ";

        TextBoxResultDataBaseSkills.Text += Environment.NewLine;
        TextBoxResultDataBaseSkills.Text += dropDownListValue + " - ";

        


        foreach (ListItem item in CheckBoxListDataBase.Items)
        {
            if (item.Text == "Beginner" && item.Selected)

                TextBoxResultDataBaseSkills.Text += item.Text; 
            else
            {

                if (item.Text == "Medium" && item.Selected)

                    TextBoxResultDataBaseSkills.Text += item.Text;
                else
                {

                    if (item.Text == "Expert" && item.Selected)

                        TextBoxResultDataBaseSkills.Text += item.Text;
                }
            }
        }
            
    }
deleted 275 characters in body
Source Link
Batistuta
  • 708
  • 1
  • 11
  • 39

enter image description here

When selecting "MS SQL Server" in the dropdownlist and also choose "Beginner" in the CheckboxList i want it to be displayed in the Textbox afther clicking the button "Add" So the result should be in the textbox MS SQL Server - Beginner In my case the code looks like this and it only displays "Beginner" in the textbox and not also the value i select in the dropdownlistenter image description here

I have putted all the design in a updatapanel but the old anyway dont displays.....................
        switch (DropDownListDataBase.SelectedItem.Value)
        {
            case "MS SQL Server":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MSSQL":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MS Access":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;


        }

        foreach (var x in CheckBoxListDataBase.SelectedItem.Value)
        {
            if (CheckBoxListDataBase.SelectedItem.Value == "Beginner")

                TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
            else
            {

                if (CheckBoxListDataBase.SelectedItem.Value == "Medium")

                    TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                else
                {

                    if (CheckBoxListDataBase.SelectedItem.Value == "Expert")

                        TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                }
            }
        }
            
    }

// Is there any wrong with this code?

enter image description here

When selecting "MS SQL Server" in the dropdownlist and also choose "Beginner" in the CheckboxList i want it to be displayed in the Textbox afther clicking the button "Add" So the result should be in the textbox MS SQL Server - Beginner In my case the code looks like this and it only displays "Beginner" in the textbox and not also the value i select in the dropdownlist

        switch (DropDownListDataBase.SelectedItem.Value)
        {
            case "MS SQL Server":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MSSQL":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MS Access":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;


        }

        foreach (var x in CheckBoxListDataBase.SelectedItem.Value)
        {
            if (CheckBoxListDataBase.SelectedItem.Value == "Beginner")

                TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
            else
            {

                if (CheckBoxListDataBase.SelectedItem.Value == "Medium")

                    TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                else
                {

                    if (CheckBoxListDataBase.SelectedItem.Value == "Expert")

                        TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                }
            }
        }
            
    }

// Is there any wrong with this code?

enter image description here

I have putted all the design in a updatapanel but the old anyway dont displays.....................
        switch (DropDownListDataBase.SelectedItem.Value)
        {
            case "MS SQL Server":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MSSQL":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MS Access":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;


        }

        foreach (var x in CheckBoxListDataBase.SelectedItem.Value)
        {
            if (CheckBoxListDataBase.SelectedItem.Value == "Beginner")

                TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
            else
            {

                if (CheckBoxListDataBase.SelectedItem.Value == "Medium")

                    TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                else
                {

                    if (CheckBoxListDataBase.SelectedItem.Value == "Expert")

                        TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                }
            }
        }
            
    }

// Is there any wrong with this code?

added 700 characters in body
Source Link
Batistuta
  • 708
  • 1
  • 11
  • 39

enter image description here

When selecting "MS SQL Server" in the dropdownlist and also choose "Beginner" in the CheckboxList i want it to be displayed in the Textbox afther clicking the button "Add" So the result should be in the textbox MS SQL Server - Beginner In my case the code looks like this and it only displays "Beginner" in the textbox and not also the value i select in the dropdownlist

 protected void ButtonAddDataBase_Click(object sender, EventArgs e  switch (DropDownListDataBase.SelectedItem.Value)
        {
        
     case "MS SQL Server":
            switch (   TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value)Value;
            {
    break;
            case "MS"MSSQL":
 SQL Server":              TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MS Access":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
 
                break;


    break;    }

        foreach (var x in }CheckBoxListDataBase.SelectedItem.Value)
        {
    switch        if (CheckBoxListDataBase.SelectedItem.Value == "Beginner")

                TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
            else
            { 

                caseif "Beginner":(CheckBoxListDataBase.SelectedItem.Value == "Medium")

                    TextBoxResultDataBaseSkills.Text =+= CheckBoxListDataBasex.SelectedItemToString(CultureInfo.Value;InvariantCulture);
                else
    break;            {

            }        if (CheckBoxListDataBase.SelectedItem.Value == "Expert")

                        TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                }
            }
        }
            
    }

// Is there any wrong with this code?

enter image description here

When selecting "MS SQL Server" in the dropdownlist and also choose "Beginner" in the CheckboxList i want it to be displayed in the Textbox afther clicking the button "Add" So the result should be in the textbox MS SQL Server - Beginner In my case the code looks like this and it only displays "Beginner" in the textbox and not also the value i select in the dropdownlist

 protected void ButtonAddDataBase_Click(object sender, EventArgs e)
    {
        
        
            switch (DropDownListDataBase.SelectedItem.Value)
            {
                case "MS SQL Server":
                    TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
 
                    break;

            }
            switch (CheckBoxListDataBase.SelectedItem.Value)
            {
                case "Beginner":
                    TextBoxResultDataBaseSkills.Text = CheckBoxListDataBase.SelectedItem.Value;
                    break;
            }
            
        
        
        

    }

enter image description here

When selecting "MS SQL Server" in the dropdownlist and also choose "Beginner" in the CheckboxList i want it to be displayed in the Textbox afther clicking the button "Add" So the result should be in the textbox MS SQL Server - Beginner In my case the code looks like this and it only displays "Beginner" in the textbox and not also the value i select in the dropdownlist

        switch (DropDownListDataBase.SelectedItem.Value)
        {
            case "MS SQL Server":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MSSQL":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;
            case "MS Access":
                TextBoxResultDataBaseSkills.Text = DropDownListDataBase.SelectedItem.Value;
                break;


        }

        foreach (var x in CheckBoxListDataBase.SelectedItem.Value)
        {
            if (CheckBoxListDataBase.SelectedItem.Value == "Beginner")

                TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
            else
            { 

                if (CheckBoxListDataBase.SelectedItem.Value == "Medium")

                    TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                else
                {

                    if (CheckBoxListDataBase.SelectedItem.Value == "Expert")

                        TextBoxResultDataBaseSkills.Text += x.ToString(CultureInfo.InvariantCulture);
                }
            }
        }
            
    }

// Is there any wrong with this code?

Source Link
Batistuta
  • 708
  • 1
  • 11
  • 39
Loading