databinding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Leon Shaw

    #1

    databinding

    have two Dropdownlist and one which is containing States and one
    containing Cities. I know how to do all the little databinding task in
    visual studios interface as well as set the relationship (parent, child,
    etc.). In the code behind file in page_load event I fill the data adapter
    and databind the State dropdownlist. I also set the on_change event for the
    Cities dropdownlist after a state is selected. However, When I run this page
    in the browser the state dropdownlist populate with the States, but after
    selecting a State the Cities dropdownlist DO NOTHING.
    What I'm I doing wrong? Could some one please send me some code that handle
    these action?
    I'm working with stored procedures from sql2000. Should I just set up a
    parameter procedure for the Cities dropdownlist (instead of Relationship in
    vs.net) and pass in the selected State?


  • CT

    #2
    Re: databinding

    Is the on_change event posted back to the server?

    --
    Carsten Thomsen
    Enterprise Development with Visual Studio .NET, UML, and MSF

    "Leon Shaw" <vnality@msn.co m> wrote in message
    news:%23UsUsjyR DHA.2196@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > have two Dropdownlist and one which is containing States and one
    > containing Cities. I know how to do all the little databinding task in
    > visual studios interface as well as set the relationship (parent, child,
    > etc.). In the code behind file in page_load event I fill the data adapter
    > and databind the State dropdownlist. I also set the on_change event for[/color]
    the[color=blue]
    > Cities dropdownlist after a state is selected. However, When I run this[/color]
    page[color=blue]
    > in the browser the state dropdownlist populate with the States, but after
    > selecting a State the Cities dropdownlist DO NOTHING.
    > What I'm I doing wrong? Could some one please send me some code that[/color]
    handle[color=blue]
    > these action?
    > I'm working with stored procedures from sql2000. Should I just set up a
    > parameter procedure for the Cities dropdownlist (instead of Relationship[/color]
    in[color=blue]
    > vs.net) and pass in the selected State?
    >
    >[/color]


    Comment

    • Leon Shaw

      #3
      Re: databinding

      yes, but when it post back, it post back with no results. do need to see the
      code behind code?
      "CT" <carstent@spamm ersgowaydotnets ervices.biz> wrote in message
      news:%23yMIvW2R DHA.1868@TK2MSF TNGP11.phx.gbl. ..[color=blue]
      > Is the on_change event posted back to the server?
      >
      > --
      > Carsten Thomsen
      > Enterprise Development with Visual Studio .NET, UML, and MSF
      > http://www.apress.com/book/bookDisplay.html?bID=105
      > "Leon Shaw" <vnality@msn.co m> wrote in message
      > news:%23UsUsjyR DHA.2196@TK2MSF TNGP11.phx.gbl. ..[color=green]
      > > have two Dropdownlist and one which is containing States and one
      > > containing Cities. I know how to do all the little databinding task in
      > > visual studios interface as well as set the relationship (parent, child,
      > > etc.). In the code behind file in page_load event I fill the data[/color][/color]
      adapter[color=blue][color=green]
      > > and databind the State dropdownlist. I also set the on_change event for[/color]
      > the[color=green]
      > > Cities dropdownlist after a state is selected. However, When I run this[/color]
      > page[color=green]
      > > in the browser the state dropdownlist populate with the States, but[/color][/color]
      after[color=blue][color=green]
      > > selecting a State the Cities dropdownlist DO NOTHING.
      > > What I'm I doing wrong? Could some one please send me some code that[/color]
      > handle[color=green]
      > > these action?
      > > I'm working with stored procedures from sql2000. Should I just set up a
      > > parameter procedure for the Cities dropdownlist (instead of Relationship[/color]
      > in[color=green]
      > > vs.net) and pass in the selected State?
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Leon Shaw

        #4
        Re: databinding

        Wait do you mean controlName_Sel ectedIndexChang ed event and autopostback =
        true?

        "CT" <carstent@spamm ersgowaydotnets ervices.biz> wrote in message
        news:%23yMIvW2R DHA.1868@TK2MSF TNGP11.phx.gbl. ..[color=blue]
        > Is the on_change event posted back to the server?
        >
        > --
        > Carsten Thomsen
        > Enterprise Development with Visual Studio .NET, UML, and MSF
        > http://www.apress.com/book/bookDisplay.html?bID=105
        > "Leon Shaw" <vnality@msn.co m> wrote in message
        > news:%23UsUsjyR DHA.2196@TK2MSF TNGP11.phx.gbl. ..[color=green]
        > > have two Dropdownlist and one which is containing States and one
        > > containing Cities. I know how to do all the little databinding task in
        > > visual studios interface as well as set the relationship (parent, child,
        > > etc.). In the code behind file in page_load event I fill the data[/color][/color]
        adapter[color=blue][color=green]
        > > and databind the State dropdownlist. I also set the on_change event for[/color]
        > the[color=green]
        > > Cities dropdownlist after a state is selected. However, When I run this[/color]
        > page[color=green]
        > > in the browser the state dropdownlist populate with the States, but[/color][/color]
        after[color=blue][color=green]
        > > selecting a State the Cities dropdownlist DO NOTHING.
        > > What I'm I doing wrong? Could some one please send me some code that[/color]
        > handle[color=green]
        > > these action?
        > > I'm working with stored procedures from sql2000. Should I just set up a
        > > parameter procedure for the Cities dropdownlist (instead of Relationship[/color]
        > in[color=green]
        > > vs.net) and pass in the selected State?
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • David Waz...

          #5
          Re: databinding

          Are you going to post this every day?



          "Leon Shaw" <vnality@msn.co m> wrote in message
          news:#UsUsjyRDH A.2196@TK2MSFTN GP11.phx.gbl...[color=blue]
          > have two Dropdownlist and one which is containing States and one
          > containing Cities. I know how to do all the little databinding task in
          > visual studios interface as well as set the relationship (parent, child,
          > etc.). In the code behind file in page_load event I fill the data adapter
          > and databind the State dropdownlist. I also set the on_change event for[/color]
          the[color=blue]
          > Cities dropdownlist after a state is selected. However, When I run this[/color]
          page[color=blue]
          > in the browser the state dropdownlist populate with the States, but after
          > selecting a State the Cities dropdownlist DO NOTHING.
          > What I'm I doing wrong? Could some one please send me some code that[/color]
          handle[color=blue]
          > these action?
          > I'm working with stored procedures from sql2000. Should I just set up a
          > parameter procedure for the Cities dropdownlist (instead of Relationship[/color]
          in[color=blue]
          > vs.net) and pass in the selected State?
          >
          >[/color]


          Comment

          • Leon Shaw

            #6
            Re: databinding

            until I get some help sir. willing to help?
            "David Waz..." <dlw@pickpro.co m> wrote in message
            news:tBDPa.171$ kS1.95540269@ne wssvr11.news.pr odigy.com...[color=blue]
            > Are you going to post this every day?
            >
            >
            >
            > "Leon Shaw" <vnality@msn.co m> wrote in message
            > news:#UsUsjyRDH A.2196@TK2MSFTN GP11.phx.gbl...[color=green]
            > > have two Dropdownlist and one which is containing States and one
            > > containing Cities. I know how to do all the little databinding task in
            > > visual studios interface as well as set the relationship (parent, child,
            > > etc.). In the code behind file in page_load event I fill the data[/color][/color]
            adapter[color=blue][color=green]
            > > and databind the State dropdownlist. I also set the on_change event for[/color]
            > the[color=green]
            > > Cities dropdownlist after a state is selected. However, When I run this[/color]
            > page[color=green]
            > > in the browser the state dropdownlist populate with the States, but[/color][/color]
            after[color=blue][color=green]
            > > selecting a State the Cities dropdownlist DO NOTHING.
            > > What I'm I doing wrong? Could some one please send me some code that[/color]
            > handle[color=green]
            > > these action?
            > > I'm working with stored procedures from sql2000. Should I just set up a
            > > parameter procedure for the Cities dropdownlist (instead of Relationship[/color]
            > in[color=green]
            > > vs.net) and pass in the selected State?
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Leon Shaw

              #7
              Re: databinding

              Thanks MAN, I got together, but your comments was not helpful.
              "David Waz..." <dlw@pickpro.co m> wrote in message
              news:lMEPa.189$ yn2.97566848@ne wssvr11.news.pr odigy.com...[color=blue]
              > READ man,
              > I've posted several times on your issue.
              >
              > Do you want us to write it for you too?
              >
              >
              > "Leon Shaw" <vnality@msn.co m> wrote in message
              > news:uAtDHC#RDH A.3192@tk2msftn gp13.phx.gbl...[color=green]
              > > until I get some help sir. willing to help?
              > > "David Waz..." <dlw@pickpro.co m> wrote in message
              > > news:tBDPa.171$ kS1.95540269@ne wssvr11.news.pr odigy.com...[color=darkred]
              > > > Are you going to post this every day?
              > > >
              > > >
              > > >
              > > > "Leon Shaw" <vnality@msn.co m> wrote in message
              > > > news:#UsUsjyRDH A.2196@TK2MSFTN GP11.phx.gbl...
              > > > > have two Dropdownlist and one which is containing States and one
              > > > > containing Cities. I know how to do all the little databinding task[/color][/color][/color]
              in[color=blue][color=green][color=darkred]
              > > > > visual studios interface as well as set the relationship (parent,[/color][/color]
              > child,[color=green][color=darkred]
              > > > > etc.). In the code behind file in page_load event I fill the data[/color]
              > > adapter[color=darkred]
              > > > > and databind the State dropdownlist. I also set the on_change event[/color][/color]
              > for[color=green][color=darkred]
              > > > the
              > > > > Cities dropdownlist after a state is selected. However, When I run[/color][/color]
              > this[color=green][color=darkred]
              > > > page
              > > > > in the browser the state dropdownlist populate with the States, but[/color]
              > > after[color=darkred]
              > > > > selecting a State the Cities dropdownlist DO NOTHING.
              > > > > What I'm I doing wrong? Could some one please send me some code that
              > > > handle
              > > > > these action?
              > > > > I'm working with stored procedures from sql2000. Should I just set[/color][/color][/color]
              up[color=blue]
              > a[color=green][color=darkred]
              > > > > parameter procedure for the Cities dropdownlist (instead of[/color][/color]
              > Relationship[color=green][color=darkred]
              > > > in
              > > > > vs.net) and pass in the selected State?
              > > > >
              > > > >
              > > >
              > > >[/color]
              > >
              > >[/color]
              >
              >[/color]


              Comment

              Working...