locked
Dropdownlist showing problem in IE but working fine in Mozilla Firefox RRS feed

  • Question

  • User1701128345 posted

    Hi,

    i have a dropdownlist which has a linq datasource ...and i have inserted 2 items "All Batch" and "Choose" from the codebehind manully...in case of mozilla firefox "Choose" is automatically selected as default in the dropdownlist but in case of IE6 the default selection in dropdownlist is blank but the items are there if we scroll the list.....

    Can anyone tell me how to make it work in IE6 too...

    thanks

    antiflag

    Thursday, November 12, 2009 8:52 PM

Answers

  • User1701128345 posted

    Hello guys,

    Here's the answer,

                dropdownlist.Items.Insert(0, "A")
                dropdownlist.Items.Insert(1, "B")


    hope it will be useful to all..

    thanks

    Antiflag

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 13, 2009 6:10 AM

All replies

  • User1701128345 posted

    Please give the code for inserting two separate items in the dropdownlist from code behind...

    Thursday, November 12, 2009 8:59 PM
  • User1701128345 posted

    Hello guys,

    Here's the answer,

                dropdownlist.Items.Insert(0, "A")
                dropdownlist.Items.Insert(1, "B")


    hope it will be useful to all..

    thanks

    Antiflag

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 13, 2009 6:10 AM