Geeks With Blogs
Fórmulas e Cenas Object Reference Not Set to an Instance of an Object January 2009 Entries
Cookies anyone?
So, yesterday I was asked to create a cookie to store some information that could be used latter on. I have never worked with cookies before and it was a nice surprise when google told me it was quite simple :) To create a Cookie: HttpCookie bolacha = new HttpCookie("CookieName"); bolacha.Values.Add("Key1",V... bolacha.Values.Add("Key2",V... bolacha.Expires = DateTime.Now + new TimeSpan(0, 1, 0, 0); // Set to expire in 1 day Response.Cookies.Add(bolacha); To Read a Cookie: HttpCookie bolacha ......

Posted On Friday, January 30, 2009 10:46 AM

Users, what purpose do they serve?
Well... I've been given this subject some thought. As a programmer do you feel that sometimes we tend to forget WHY we make software? I mean, it's fun to program. If you are like me you take every single shot you can at trying out new technologies and new approaches to whatever your current task is. But sometimes don't we forget that the most important task we have is to improve the quality of the life of the people that use our software making them more productive and less prone to errors? Just ......

Posted On Monday, January 26, 2009 11:58 AM

ActiveX Struggle
After several days of banging my head against a wall, it was time to finally smile :) When invoking a web page in an activeX component if the client needs a proxy server to access the web, then you have a problem, a not so well documented problem... So if you ever are in this position, just use this function ;) private static WebProxy QueryIEProxySettings(string strFileURL) { HttpWebRequest WebReqt = (HttpWebRequest)HttpWebRequ... WebProxy WP = new WebProxy(WebReqt.Proxy.GetP... ......

Posted On Tuesday, January 20, 2009 5:16 PM

Copyright © Sglima | Powered by: