using System.Data.Linq;
public static Func> userData = CompiledQuery.Compile((myDataContext db) => db.TableUsers);
using System.Data.Linq;
public static Func> userData = CompiledQuery.Compile((myDataContext db) => db.TableUsers);
using System.Diagnostics;
Stopwatch sw = new Stopwatch(); //create object sw.Start(); // start the stopwatch //do something here sw.Stop(); // stop the stopwatch Console.WriteLine("Time elapsed : " + sw.ElapsedMilliseconds.ToString());
//Here's the codes protected void Calendar1_DayRender(object sender, DayRenderEventArgs e) { Listdt = new List (); for (int i = 0; i < 5; i++) { DateTime myevent = new DateTime(2012,02,2+2*i); dt.Add(myevent); } foreach (var item in dt) { if (e.Day.Date == item) { e.Cell.ForeColor = Color.White; e.Cell.BackColor = Color.BlueViolet; e.Cell.Text = e.Day.DayNumberText; e.Cell.ToolTip = "tooltip untuk tgl " + e.Day.DayNumberText; } } }
Show YM Online Status
<img src="http://opi.yahoo.com/online?u=ymID&m=g&t=1" />
example :
<img src="http://opi.yahoo.com/online?u=ardi_ardianto_z&m=g&t=1" />
t=number) will
change the image<img src="http://opi.yahoo.com/online?u=ardi_ardianto_z&m=g&t=12" />