Hello there......

I have added conmo boxes on productattribute.ascx page.......

Now what i want to do is i want to show the dropdown box's selected value in a label in the same page...

i have done it through javascript..

The value is like 20 Mil [+$10.00]...for example...
i want to split 20 Mil and $10.00 into separate labels.... how can i do this....??? The code is given below...

for (int j = 0; j < mearray.Count; j++)
            {
                Label title = new Label();
                var char_sep = new char[1];
                char_sep[0] = '|';
                var tmp_arr = mearray[j].ToString().Split(char_sep);
                

                string a1 = mearray[j].ToString();
              
                if (a1 != null)
                {
                    switch (a1)
                    {
                        case "5 days select|22-68":
                            {
                                b = 0;
                                // Turnaroundtime.Text = b.ToString();
                            }
                            break;
                        case "3 Days select [+$15.00]|23_69":
                            {
                                b = 15;
                                //Turnaroundtime.Text = b.ToString();
                            }
                            break;
                        case "2 days select [+$25.00]|24_70":
                            {
                                b = 25;
                                //Turnaroundtime.Text = b.ToString();
                            }
                            break;
                        case "1 day select [+$50.00]|25_71":
                            {
                                b = 50;
                                // Turnaroundtime.Text = b.ToString();
                            }
                            break;
                    }

                }


                if (tmp_arr.Length > 1)
                {
                    //title.ClientID = "lbl" + tmp_arr[1].ToString();
                    title.ID = "lbl" + tmp_arr[1].ToString();
                  
                }
                else
                {
                    //title.ClientID = "lbl" + j.ToString();
                    title.ID = "lbl" + j.ToString();
                }

                /////title.Text = mearray[j].ToString();
                if (tmp_arr.Length > 1)
                {
                    title.Text = tmp_arr[0].ToString();
                  
                }
                else
                {
                    title.Text = "";
                }
                // title.Style.Add("float","right");  
                // title.Style.Add("top","right");
                title.Text += "<br />";
                title.Style.Add("display", "block");
                phlabelAttributes.Controls.Add(title);
            }

you can refer my site too..

it is duracard-com.si-cloud.com