HighTechTalks DotNet Forums  

DataGrid Footer DropDownList OnSelectedIndexChanged

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss DataGrid Footer DropDownList OnSelectedIndexChanged in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
 
Posts: n/a

Default DataGrid Footer DropDownList OnSelectedIndexChanged - 11-08-2007 , 08:08 AM






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.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.