Sunday, May 24, 2009

Set Link for Email Sending using javascript

javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(location.href);

Find time Elapsed In .net without using Timer Control

System.Diagnostics.Stopwatch calcElap= new System.Diagnostics.Stopwatch();
calcElap.Start();

//do my stuff
...

calcElap.Stop();
Response.Write("Time Elapse: " + calcElap.Elapsed.ToString());

Categories