Wednesday, September 06, 2006

ASP.net and the iframe tag

When building the sudoku site that lets others get a sudoku grid on their site...I noticed a big problem with asp pages and iframes:Session variables and cookies are lost during post back.
So trying this:
Session["MyVar"] = "somevalue";
and then after a post-back checking the session variable like this:
if (Session["MyVar"] == null)
Response.Write("NULL");
you will get NULL written on your site.
The way I solved this problem is this: I added a invisible textbox that holds the value of the session variable,like this:
MyTextBox.Visible=False;
MyTextBox.Text = "somevalue";
and then when checking the value you simply get the value stored in the textbox.
The solution is really old-fashioned and not pretty at all...but at least made the site work for the time being...until I find a good solution.

Sunday, September 03, 2006

Get it while it`s hot

http://site24x7.com/ - free online site monitoring tool
Xml notepad - free xml enchanted notepad from Microsoft
Firefox 2 beta 2 - The browser..

GTD - Getting Things Done

Google found a new(and entertaining) way of expanding its image search index. Getting more users to enter keywords is not an easy job...but Google did it with its image labeler..it`s a game in which players compete in order to enter the matching keywords for a given picture. Quite a nice game too...and it`s not evil :)