Results 1 to 5 of 5

Thread: drop down list index changed automaticlly

  1. #1
    Junior Member
    Join Date
    Nov 11
    Posts
    28

    Unhappy drop down list index changed automaticlly

    Hi all i have 2 drop down list on my web page
    the first one bound to a sqldatasource and it's work fine
    ............................
    the second one bound to a sqldatasource (with a parameter depends on the first drop down list selected value )
    and it's work fine too .
    But
    when a user make a selection on the second drop down list, any post back on the page will return the second drop down list selected index equal to 0
    I tried so hard (ON MSDN) to understand why this happen only on this drop down list....
    but no result, Any help will be appreciated

  2. #2
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,449

    Re: drop down list index changed automaticlly

    Thread moved to ASP.NET
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 02
    Location
    Eygelshoven
    Posts
    1,556

    Re: drop down list index changed automaticlly

    Does the first ddl change after a change of ddl2?
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

  4. #4
    Fanatic Member
    Join Date
    Jun 04
    Location
    All useless places
    Posts
    916

    Re: drop down list index changed automaticlly

    Does the first drop down list gets bound during the postback? How is it bound initially?

  5. #5
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,838

    Re: drop down list index changed automaticlly

    Hello,

    This doesn't answer your question in anyway, but I feel it needs to be said...

    Using SqlDataSources, although gets you up and running quickly, used be regarded as only suitable for Proof Of Concept applications. They are prone to being problematic, and limited when it comes to more advanced features. In terms of creating a scalable and maintainable system, you really ought to look to a true multiple tier architecture, rather than use SqlDatabSources, IMO.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •