DataGrid Footer DropDownList OnSelectedIndexChanged

Discussion in 'ASP .Net' started by Guest, Nov 8, 2007.

  1. Guest

    Guest Guest

    I have 2 dropdownlists in the Footer of a datagrid:

    ddlStartTime and ddlEndTime. Both contain values like "1:00 AM", "1:15 AM",
    "1:30 AM", etc.

    There is also a label named lblTimeDiff.

    I need to dynamically popolate lblTimeDiff.Text (during
    onselectedindexchanged of ddlEndTime) with the difference in minutes between
    ddlStart and ddlEnd in the Footer. I'm sure javascript will come into play
    here but I have absolutely no idea how to define the eventhandler and
    scripting. I can do this in tsql using datediff(mi, start_time, end_time),
    just can't seem to dynamically put the return value in the label without a
    postback to the server. Any ideas? Thank you very much.
    Guest, Nov 8, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexander Reichman

    Dropdownlist onselectedIndexChanged event not fires

    Alexander Reichman, Oct 17, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    23,281
  2. Paul L
    Replies:
    1
    Views:
    7,272
  3. Replies:
    8
    Views:
    749
  4. =?Utf-8?B?Z2xlbm4=?=

    DropDownList control and OnSelectedIndexChanged event

    =?Utf-8?B?Z2xlbm4=?=, Apr 21, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    8,321
    =?Utf-8?B?Y2xpY2tvbg==?=
    Apr 21, 2006
  5. Henrik
    Replies:
    1
    Views:
    408
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
Loading...

Share This Page