Click here to Skip to main content
16,004,969 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: cant set text of two password fields on update page Pin
jake williamson23-Apr-07 21:25
jake williamson23-Apr-07 21:25 
Questionjavascripting with web controls Pin
iamdking22-Apr-07 21:09
iamdking22-Apr-07 21:09 
Answerjavascripting with web controls Pin
kashasd22-Apr-07 21:21
kashasd22-Apr-07 21:21 
GeneralRe: javascripting with web controls Pin
iamdking22-Apr-07 21:31
iamdking22-Apr-07 21:31 
Generalhow to compute two dateTime on postback Pin
bernie_01123-Apr-07 0:22
bernie_01123-Apr-07 0:22 
GeneralRe: how to compute two dateTime on postback Pin
Chetan Ranpariya23-Apr-07 0:41
Chetan Ranpariya23-Apr-07 0:41 
GeneralRe: how to compute two dateTime on postback Pin
bernie_01129-Apr-07 22:55
bernie_01129-Apr-07 22:55 
AnswerRe: how to compute two dateTime on postback [modified] Pin
Chetan Ranpariya29-Apr-07 23:14
Chetan Ranpariya29-Apr-07 23:14 
Hi,

You can use the following logic if it is applicable to your requirments.

DateTime dt1 = Convert.ToDateTime(frmdrp.SelectedValue);
DateTime dt2 = Convert.ToDateTime(todrp.SelectedValue);
TimeSpan ts = dt2 - dt1;
int totalhours = ts.Hours;
int totalmins = ts.Minutes;
label1.Text = totalhours.ToString() + ":" + totalmins.ToString();

I hope this will help you.

Thanks and Regards,
Chetan Ranpariya


-- modified at 5:19 Monday 30th April, 2007
GeneralRe: how to compute two dateTime on postback Pin
bernie_01130-Apr-07 20:45
bernie_01130-Apr-07 20:45 
GeneralRe: how to compute two dateTime on postback Pin
bernie_01130-Apr-07 21:09
bernie_01130-Apr-07 21:09 
GeneralRe: how to compute two dateTime on postback Pin
Chetan Ranpariya1-May-07 20:44
Chetan Ranpariya1-May-07 20:44 
GeneralRe: how to compute two dateTime on postback Pin
bernie_0111-May-07 22:25
bernie_0111-May-07 22:25 
AnswerRe: how to compute two dateTime on postback Pin
Chetan Ranpariya1-May-07 22:28
Chetan Ranpariya1-May-07 22:28 
GeneralRe: how to compute two dateTime on postback Pin
bernie_0111-May-07 22:38
bernie_0111-May-07 22:38 
GeneralRe: how to compute two dateTime on postback Pin
Chetan Ranpariya1-May-07 22:40
Chetan Ranpariya1-May-07 22:40 
GeneralRe: how to compute two dateTime on postback Pin
bernie_0111-May-07 22:58
bernie_0111-May-07 22:58 
GeneralRe: how to compute two dateTime on postback Pin
Chetan Ranpariya1-May-07 23:09
Chetan Ranpariya1-May-07 23:09 
GeneralRe: how to compute two dateTime on postback Pin
bernie_0111-May-07 23:29
bernie_0111-May-07 23:29 
GeneralRe: how to compute two dateTime on postback Pin
Chetan Ranpariya1-May-07 23:36
Chetan Ranpariya1-May-07 23:36 
GeneralRe: how to compute two dateTime on postback Pin
bernie_0111-May-07 23:40
bernie_0111-May-07 23:40 
GeneralRe: how to compute two dateTime on postback Pin
bernie_0113-May-07 23:49
bernie_0113-May-07 23:49 
AnswerRe: how to compute two dateTime on postback Pin
Chetan Ranpariya6-May-07 23:57
Chetan Ranpariya6-May-07 23:57 
GeneralRe: how to compute two dateTime on postback Pin
bernie_0117-May-07 0:16
bernie_0117-May-07 0:16 
GeneralExam Application Pin
bernie_0119-May-07 20:35
bernie_0119-May-07 20:35 
QuestionHow to find the number of parameters in a Store procedure Pin
kashasd22-Apr-07 21:05
kashasd22-Apr-07 21:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.