what ListBox event should I use

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

    what ListBox event should I use

    hi

    asp.net 2.0

    I have a ListBox on my webpage. When user selects a row I want some code to
    be executed. I've tryed "OnSelectedInde xChanged" but that event isn't
    triggered when changing rows. So I'm unsure what event to use...

    this is the markup of the ListBox:
    <asp:ListBox Width="300"
    Height="150"
    ID="lbCar"
    OnSelectedIndex Changed="lbUrl_ SelectedIndexCh anged"
    runat="server">
    </asp:ListBox>

    any suggestions what event I should use?


  • Jeff

    #2
    Re: what ListBox event should I use

    Okay, I've solved it: AutoPostBack = true


    "Jeff" <it_consultant1 @hotmail.com.NO SPAMwrote in message
    news:%23uahanrR JHA.4512@TK2MSF TNGP02.phx.gbl. ..
    hi
    >
    asp.net 2.0
    >
    I have a ListBox on my webpage. When user selects a row I want some code
    to be executed. I've tryed "OnSelectedInde xChanged" but that event isn't
    triggered when changing rows. So I'm unsure what event to use...
    >
    this is the markup of the ListBox:
    <asp:ListBox Width="300"
    Height="150"
    ID="lbCar"
    OnSelectedIndex Changed="lbUrl_ SelectedIndexCh anged"
    runat="server">
    </asp:ListBox>
    >
    any suggestions what event I should use?
    >

    Comment

    Working...