Fórmulas e Cenas

Object Reference Not Set to an Instance of an Object

  Home  |   Contact  |   Syndication    |   Login
  45 Posts | 0 Stories | 15 Comments | 0 Trackbacks

News

Archives

Post Categories

Links

January 2009 Entries

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 ......

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 ......

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... ......