Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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?


    Leon Shaw Guest

  2. Similar Questions and Discussions

    1. DataBinding to SubProperties
      I have built a custom control that has, as one of its properties, a collection of another custom control. So controlA has property of type...
    2. databinding after page_load
      Hi, I'm working on a webpage which starts with a rather timeconsuming database transaction. (two different .mdb's from different MSAccess versions...
    3. DataGrid Custom Column Error when DataBinding "does not contain a definition for 'DataBinding'"
      I am creating a custom column that inherits from DataColumnGrid. When I attempt Databind to a property of the custom column, I get the the error: ...
    4. Listbox DataBinding
      I am trying to bind data from a database to a DropDownListBox on an ..aspx page. I want to display 2 fields in listbox (listbox's .DataTextField...
    5. Databinding Inquiry
      What is the best way to databind two related dropdownlist control in visual studios.net using vb.net programming language and sql2000 stored...
  3. #2

    Default Re: databinding

    Is the on_change event posted back to the server?

    --
    Carsten Thomsen
    Enterprise Development with Visual Studio .NET, UML, and MSF
    [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    "Leon Shaw" <vnality@msn.com> wrote in message
    news:%23UsUsjyRDHA.2196@TK2MSFTNGP11.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 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 Guest

  4. #3

    Default Re: databinding

    yes, but when it post back, it post back with no results. do need to see the
    code behind code?
    "CT" <carstent@spammersgowaydotnetservices.biz> wrote in message
    news:%23yMIvW2RDHA.1868@TK2MSFTNGP11.phx.gbl...
    > Is the on_change event posted back to the server?
    >
    > --
    > Carsten Thomsen
    > Enterprise Development with Visual Studio .NET, UML, and MSF
    > [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    > "Leon Shaw" <vnality@msn.com> wrote in message
    > news:%23UsUsjyRDHA.2196@TK2MSFTNGP11.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 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?
    > >
    > >
    >
    >

    Leon Shaw Guest

  5. #4

    Default Re: databinding

    Wait do you mean controlName_SelectedIndexChanged event and autopostback =
    true?

    "CT" <carstent@spammersgowaydotnetservices.biz> wrote in message
    news:%23yMIvW2RDHA.1868@TK2MSFTNGP11.phx.gbl...
    > Is the on_change event posted back to the server?
    >
    > --
    > Carsten Thomsen
    > Enterprise Development with Visual Studio .NET, UML, and MSF
    > [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    > "Leon Shaw" <vnality@msn.com> wrote in message
    > news:%23UsUsjyRDHA.2196@TK2MSFTNGP11.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 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?
    > >
    > >
    >
    >

    Leon Shaw Guest

  6. #5

    Default Re: databinding

    Are you going to post this every day?



    "Leon Shaw" <vnality@msn.com> wrote in message
    news:#UsUsjyRDHA.2196@TK2MSFTNGP11.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 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?
    >
    >

    David Waz... Guest

  7. #6

    Default Re: databinding

    until I get some help sir. willing to help?
    "David Waz..." <dlw@pickpro.com> wrote in message
    news:tBDPa.171$kS1.95540269@newssvr11.news.prodigy .com...
    > Are you going to post this every day?
    >
    >
    >
    > "Leon Shaw" <vnality@msn.com> wrote in message
    > news:#UsUsjyRDHA.2196@TK2MSFTNGP11.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 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?
    > >
    > >
    >
    >

    Leon Shaw Guest

  8. #7

    Default Re: databinding

    Thanks MAN, I got together, but your comments was not helpful.
    "David Waz..." <dlw@pickpro.com> wrote in message
    news:lMEPa.189$yn2.97566848@newssvr11.news.prodigy .com...
    > READ man,
    > I've posted several times on your issue.
    >
    > Do you want us to write it for you too?
    >
    >
    > "Leon Shaw" <vnality@msn.com> wrote in message
    > news:uAtDHC#RDHA.3192@tk2msftngp13.phx.gbl...
    > > until I get some help sir. willing to help?
    > > "David Waz..." <dlw@pickpro.com> wrote in message
    > > news:tBDPa.171$kS1.95540269@newssvr11.news.prodigy .com...
    > > > Are you going to post this every day?
    > > >
    > > >
    > > >
    > > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > > news:#UsUsjyRDHA.2196@TK2MSFTNGP11.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
    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?
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Leon Shaw Guest

  9. #8

    Default DataBinding

    I seem to be having a problem with a composite control which binds to a custom business object. Everything works fine except in design time when the page is opened in the design mode the datasource property does not seem to be read. I have created a designer based on controldesigner and once the property is reset or a property which causes a call to createchildcontrols it works fine.

    ---
    Posted using Wimdows.net Newsgroups - [url]http://www.wimdows.net/newsgroups/[/url]
    Derek Spurlock Guest

  10. #9

    Default databinding

    Eval("pId"(UName", "~/pages/xit.aspx?p={0}&uname={1}"))

    Is this correct coz i can get it to work. i am trying to get this query when
    u click this link in a formview control.
    "www.someweb.com/pages/pix.aspx?p={pId}&uname={UName}"
    from the above databinding but i cant get it to assign to the NavigateUrl
    propery. please help


    Eamon Straughn Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139