click event

Last post 04-18-2007 7:28 AM by JRICE. 6 replies.

Sort Posts:

  • click event

    04-18-2007, 1:52 AM
    • Member
      18 point Member
    • sowna
    • Member since 03-22-2007, 12:10 PM
    • Posts 124

    in my aspx page i have two dropdownlist boxes .i have retrieved values in first dropdownlist and when i click on the selected value it should go to the selected index change event of the firstdropdownlist box.

    but in my code when i click on the first selected value  it is not going to the selectedindexcanged event but for second and other values it is going to the selected indexchanged event.

    after on clicking the second value if i click the first value it is going to the event but for the first time when iam clicking on the first value selectedindexchanged is not firing.

  • Re: click event

    04-18-2007, 4:05 AM
    • All-Star
      37,391 point All-Star
    • Haissam
    • Member since 10-05-2006, 6:25 AM
    • Beirut - Lebanon
    • Posts 5,632

    The first item in your case is the selected item of the dropdownlist this is why  when you re-select it, this event won't be firing. 

    HC

     

     

    Haissam Abdul Malak
    MCAD.NET
    | Blog |
  • Re: click event

    04-18-2007, 4:23 AM
    Answer
    • Member
      24 point Member
    • chandrayvr
    • Member since 03-22-2007, 8:43 AM
    • INDIA
    • Posts 56

    In ur dropdownlist list first  set defaultitem say 'select'

    Based on that ur remaining items will work.

    or

    in page load    if page.ispostback=false then

                     write the logic

     

  • Re: click event

    04-18-2007, 4:24 AM
    • Member
      24 point Member
    • chandrayvr
    • Member since 03-22-2007, 8:43 AM
    • INDIA
    • Posts 56

    In ur dropdownlist list first  set defaultitem say 'select'

    Based on that ur remaining items will work.

    or

    in page load    if page.ispostback=false then

                     write the logic

     

  • Re: click event

    04-18-2007, 5:17 AM
    • Member
      18 point Member
    • sowna
    • Member since 03-22-2007, 12:10 PM
    • Posts 124

    Thank u

  • Re: click event

    04-18-2007, 5:29 AM
    • Member
      18 point Member
    • sowna
    • Member since 03-22-2007, 12:10 PM
    • Posts 124

     

    <

    asp:listitem Value ="select" selected="True">select</asp:listitem>

    I have used the code which u have said it is working for the firstdropdownlist.if i click on the fistvalue of the second dropdouwnlist ishould get the same value in the textbox. 

  • Re: click event

    04-18-2007, 7:28 AM
    • Contributor
      2,176 point Contributor
    • JRICE
    • Member since 05-10-2006, 8:52 PM
    • Lebanon-Beirut
    • Posts 667
    Whats ur question?
    Please remember to "Mark As Answer" if this post answered your question!

    Bilal Shouman - MCAD.NET

    |My Blog|
    ---------------------------------


Page 1 of 1 (7 items)