DataGrid Footer DropDownList OnSelectedIndexChanged

G

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top