Monday, 22 March 2010
I've used the UrlRewriting.Net module for a couple years now without any problems in Windows XP. I just recently upgraded my home PC to Windows 7 and started developing a new website.
The plan was to rewrite the URLs to something more meaningful using the UrlRewriting.Net module. Everything worked flawlessly in VS 2008, but when I tried running it through IIS7 it was a different story.
When I was accessing a page via its rewritten URL I could no longer access Page.User; it kept returning null. If I hit the page using it's .aspx extension, Page.User was correctly populated. I should also mention that I have a LoginView controller in my Master Page and it suffered from the same symptoms: When accessing via the rewritten url the AnonyousTemplate was always shown; When using .aspx extension it properly shows the LoggedInTemplate.
The solution was to add the below to web.config:
I found this solution thanks to Scott G who talks about using runAllManagedModulesForAllRequests for this purpose.http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
Saturday, 13 March 2010
This is a tutorial on how to enable Windows 7 integration in Mozilla Firefox 3.6. You can enable features such as tab previews in the preview pane and Aero Peek tab navigation. This is a great way to enhance the experience using Firefox under Windows 7.1)
Open Firefox 3.6.2)
In the address bar type: "about:config" (without quotes) and hit 'enter'.3)
If a warning message is displayed, click "I'll be careful, I promise!".Warning:
Changing the advanced settings can be harmful to the stability, security and performance of Firefox. You should only continue if you are sure of what you are doing.4)
In the 'Filter' bar type: "browser.allTabs.previews" (without quotes).5)
Below the Filter bar the "browser.allTabs.previews" entry should be displayed. Right click the "browser.allTabs.previews" entry and click "Toggle". The "browser.allTabs.previews" value should now be set to "true".6)
In the 'Filter' bar now type: "browser.taskbar.previews.enable" (without quotes).7)
Below the Filter bar the "browser.taskbar.previews.enable" entry should be displayed. Right click the "browser.taskbar.previews.enable" entry and click "Toggle". The "browser.taskbar.previews.enable" value should now be set to "true".8)
In the 'Filter' bar now type: "browser.ctrlTab.previews" (without quotes).9)
Below the Filter bar the "browser.ctrlTab.previews" entry should be displayed. Right click the "browser.ctrlTab.previews" entry and click "Toggle". The "browser.ctrlTab.previews" value should now be set to "true".10)
Restart Firefox for the changes to take effect.
Mozilla Firefox 3.6 should now integrate nicely with Windows 7. It is a certainty that Mozilla will enable these features by default in future versions of Firefox, so if you don't feel comfortable making the changes, just wait for Mozilla to make them for you! :)