Yussi Ariefiyono
asp.net
substract datetime in c#
Aug 13th
Problem:
Substraction datetime in c#, in this case from textboxes
Solution:
DateTime _Text1 = DateTime.Parse(Text1.Text);
DateTime _Text2 = DateTime.Parse(Text2.Text);
System.TimeSpan result = _Text1 – _Text2 ;
Response.Write(result.TotalDays); –> display the total days diffrence
Response redirect target blank
Aug 6th
Problem:
Repsonse.Redirect cannot open the url in "target blank" mode
Solution:
javascript,
for example: Response.Write("<script language='javascript'> window.open('" + DropDownList.SelectedValue + "', 'window');</script>");
from jose:
Response.Write("<script type='text/javascript'>");
Response.Write("document.location = 'http://www.google.com';");
Response.Write("</script>");
Response.End() ;
asp:menu on SAFARI
Jul 2nd
Problem:
dropdown menu /styling within the menu is not applied completely
Solution:
if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
{
Request.Browser.Adapters.Clear();
}
Final Release of VS 2008 and .NET 3.5 Now Available
Jan 23rd
Finallly!!!! , it comes… i have tried it at home and its awesome! alot of new features.
More Info:
http://asp.net/downloads/vs2008/