Click here to Skip to main content
15,897,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Import export outlook contacts Pin
pmarfleet16-Nov-07 21:33
pmarfleet16-Nov-07 21:33 
QuestionAuto Calculate An Age Entered in Textbox : Without Postback the page. Pin
Gandalf_TheWhite16-Nov-07 19:23
professionalGandalf_TheWhite16-Nov-07 19:23 
AnswerRe: Auto Calculate An Age Entered in Textbox : Without Postback the page. Pin
SABhatti16-Nov-07 19:27
SABhatti16-Nov-07 19:27 
GeneralAuto Calculate An Age Entered in Textbox : Without Postback the page. Pin
Gandalf_TheWhite16-Nov-07 19:44
professionalGandalf_TheWhite16-Nov-07 19:44 
GeneralRe: Auto Calculate An Age Entered in Textbox : Without Postback the page. Pin
Gandalf_TheWhite16-Nov-07 21:28
professionalGandalf_TheWhite16-Nov-07 21:28 
GeneralRe: Auto Calculate An Age Entered in Textbox : Without Postback the page. Pin
pmarfleet16-Nov-07 21:37
pmarfleet16-Nov-07 21:37 
GeneralAuto Calculate An Age Entered in Textbox : Without Postback the page. Pin
Gandalf_TheWhite17-Nov-07 2:14
professionalGandalf_TheWhite17-Nov-07 2:14 
AnswerRe: Auto Calculate An Age Entered in Textbox : Without Postback the page. Pin
www.Developerof.NET16-Nov-07 22:09
www.Developerof.NET16-Nov-07 22:09 
try this code



var date1="07/23/1985";
var current=new Date();
var entered=new Date(date1);
var one_year=1000*60*60*24*365;
var no_of_days=Math.ceil((current.getTime()-entered.getTime())/(one_year));
alert("You are "+no_of_days+" Years old");



you can write the code inside a function and pass the date as a string.



When you fail to plan, you are planning to fail.

QuestionHow to generate Page Oninit event Pin
NetBot16-Nov-07 19:21
NetBot16-Nov-07 19:21 
AnswerRe: How to generate Page Oninit event Pin
SABhatti16-Nov-07 19:32
SABhatti16-Nov-07 19:32 
GeneralRe: How to generate Page Oninit event Pin
NetBot16-Nov-07 19:41
NetBot16-Nov-07 19:41 
GeneralRe: How to generate Page Oninit event Pin
SABhatti16-Nov-07 20:09
SABhatti16-Nov-07 20:09 
QuestionHow to play a video file in my .aspx page in ASP.NET Pin
radhekrishna16-Nov-07 18:57
radhekrishna16-Nov-07 18:57 
AnswerRe: How to play a video file in my .aspx page in ASP.NET Pin
Sun Rays16-Nov-07 19:19
Sun Rays16-Nov-07 19:19 
AnswerRe: How to play a video file in my .aspx page in ASP.NET Pin
Kasi Viswanathan16-Nov-07 19:22
Kasi Viswanathan16-Nov-07 19:22 
QuestionRetriving images from folder Pin
Krishna Varadharajan16-Nov-07 18:57
Krishna Varadharajan16-Nov-07 18:57 
AnswerRe: Retriving images from folder Pin
Imran Khan Pathan16-Nov-07 19:11
Imran Khan Pathan16-Nov-07 19:11 
GeneralRe: Retriving images from folder Pin
Krishna Varadharajan16-Nov-07 19:18
Krishna Varadharajan16-Nov-07 19:18 
QuestionSet property of HTML server control (div control) at runtime Pin
Vijayitsb16-Nov-07 18:57
Vijayitsb16-Nov-07 18:57 
AnswerRe: Set property of HTML server control (div control) at runtime Pin
SABhatti16-Nov-07 19:11
SABhatti16-Nov-07 19:11 
QuestionRemoving Items from Cookie Pin
Khan.Bangash16-Nov-07 18:09
Khan.Bangash16-Nov-07 18:09 
AnswerRe: Removing Items from Cookie [modified] Pin
ps.srinivasan16-Nov-07 18:57
ps.srinivasan16-Nov-07 18:57 
GeneralRe: Removing Items from Cookie Pin
John-ph16-Nov-07 20:19
John-ph16-Nov-07 20:19 
GeneralRe: Removing Items from Cookie Pin
Khan.Bangash16-Nov-07 21:52
Khan.Bangash16-Nov-07 21:52 
GeneralRe: Removing Items from Cookie Pin
Khan.Bangash16-Nov-07 21:58
Khan.Bangash16-Nov-07 21:58 

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.