2
Answers

how to calculate the hours in asp.net using c#

how to calculate the hours
like mrg 10 to 5 total 7 hrs
if i login in 10.30 and logout at 5.30 same 7 hrs me wrokked
now i logi at 10.15 and logout at 5.30 7.45 7hrs and 45 mins me worked i need to calculate the min and hrs

Answers (2)

0
Photo of saurabh mittal
NA 323 2.7k 11y
Hi Abhishek

  whn u bind dropdown than put datatextfield=data
  and datavaluefield=id
  whn u select data from dropdown than u can get id by
 
  dropdownid.selecteditem.value

no need to take id from sql server