How to get the url of page dynamically
Use Request.Url property
How to clear the Calendar Control Selection
VB.NET Calendar1.SelectedDate =new DateTime() C# Calendar1.SelectedDate =new DateTime();
How to convert string to a DateTime and compare it with another DateTime
VB.NET Dim blntimeIsOk As Boolean = DateTime.Parse(’15:00′) < DateTime.Parse(’08:00′) Response.Write(blntimeIsOk) C# bool blntimeIsOk = (DateTime.Parse(’15:00′) < DateTime.Parse(’08:00′)); Response.Write (blntimeIsOk);
How to get the current filename
VB.NET Response.Write (Path.GetFileName(Request.PhysicalPath)) C# Response.Write (Path.GetFileName(Request.PhysicalPath));
How to get the physical path of a file
Use Request.Path