ASP.NET Client side event question

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

    ASP.NET Client side event question

    Hi I am new to asp.net and I need to get my head around
    the way client side events interact with server side
    events.

    I want to have three listbox's on a page, the value the
    user selects in the first listbox determines the second
    listbox's values, the value the user selects in the second
    box determines the third listbox's values etc.

    I double clicked on the first listbox to generate a code
    behind event which I filled with the appropriate code but
    of course nothing happens on the web interface because my
    event is server side.

    Please help.
  • John Timney \(Microsoft MVP\)

    #2
    Re: ASP.NET Client side event question

    With ASP.NET you are still bound by all the constraints of HTML and client
    side events you were with ASP. if you want something to happen on your
    client, you have to output the appropriate javascript to make it happen.
    The alternative is to do round trips to the server.

    --
    Regards

    John Timney (Microsoft ASP.NET MVP)
    ----------------------------------------------
    <shameless_auth or_plug>
    Professional .NET for Java Developers with C#
    ISBN:1-861007-91-4
    Professional Windows Forms
    ISBN: 1861005547
    Professional JSP 2nd Edition
    ISBN: 1861004958
    Professional JSP
    ISBN: 1861003625
    Beginning JSP Web Development
    ISBN: 1861002092
    </shameless_autho r_plug>
    ----------------------------------------------

    "Karl" <kwoollaston@li nz.govt.nz> wrote in message
    news:1247601c3c 02c$fc020270$a6 01280a@phx.gbl. ..[color=blue]
    > Hi I am new to asp.net and I need to get my head around
    > the way client side events interact with server side
    > events.
    >
    > I want to have three listbox's on a page, the value the
    > user selects in the first listbox determines the second
    > listbox's values, the value the user selects in the second
    > box determines the third listbox's values etc.
    >
    > I double clicked on the first listbox to generate a code
    > behind event which I filled with the appropriate code but
    > of course nothing happens on the web interface because my
    > event is server side.
    >
    > Please help.[/color]


    Comment

    Working...