oh i see... thanks for the info. anyway, how can i put this into javascript code that if the user will press the enter key, it will go to another statement.
well i'll assume that getFlightTime() is being pulled from a database, .. so you will probably have to just submit the page and do it all server-side.
i haven't done a whole lot of c#/asp programming, .. but if i remember correctly, you can use If(IsPostBack) in the page load function. if it results in true, then i think you could then use the logic you have above.
the difference is the page will refresh as opposed to executing client side like javascript.
i'm typing from memory as i haven't coded c# very much with asp.net. you may want to google IsPostBack for examples of how others process forms server side with c#.