Geeks With Blogs
Ben Bastiaensen Living the .NET live ASP.NET
CSS3 intellisense for Visual Studio 2010
Web developers who would like to use CSS3 intellisense in Visual Studio 2010 can download this for free as an add-on form this website. Make sure you close VS before running the installer. The file should be automatically installed to C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\1033\... . Open up VS again and open a CSS file. You should be able to pick CSS3 from the style sheet toolbar. If not you should run the following registry script (don't forget to close VS before ......

Posted On Friday, April 22, 2011 9:38 AM

ASP.NET 4.0 URL Routing HTTP Error 404.0 - Not Found
URL Routing is a very nice new feature in ASP.NET 4.0. And in Visual Studio everything works just great. But as soon as you start testing on IIS you get a "Error 404.0 - Not Found". To solve this you need to make sure that: you have set the Application Pool to "asp.net 4.0 application pool". Routing will not work with "asp.net 4.0 classic application pool". you add the following code to your web.config: <system.webServer> <modules runAllManagedModulesForAllR... <remove ......

Posted On Thursday, April 21, 2011 4:42 AM

Request Validation in ASP.NET 4.0
Up to ASP.NET 3.5 Request Validation is enabled by default. In order to to disable this for a page you needed to set the ValidationRequest property in the page directive to false. This is no longer the default case in ASP.NET 4.0. If you want to use this behaviour you need to add the follwing setting in web.config <httpRuntime requestValidationMode="2.0" /> Of course you need to check all input in the page for XSS or other malicious input if you set the pages request validation to false ......

Posted On Monday, December 13, 2010 1:05 PM

HTML5 Target Schema for Visual Studio
Microsoft has made a target Schema for HTML 5 development. This schema can be installed on VS 2008 en VS 2010. You can download it form this website. Then run the installer. If VS 2010 is not installed in it’s default location (C:\Program Files\Microsoft Visual Studio 10.00), then after running the .msi, you will have to manually move the ‘html_5.xsd’ to the location where VS 2010 is installed on your machine, for the intellisense to work properly ......

Posted On Friday, October 22, 2010 4:27 AM

'this.get_element().style' is null or not an object
While testing an AJAX enabled web app I sometimes stumbled upon this script error: 'this.get_element().style' is null or not an object. It was a hard nut to crack this one. This was the actual message (in dutch, sorry ): 12.00 Normal 0 21 false false false NL-BE X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:Standaardta... mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; ......

Posted On Wednesday, July 15, 2009 12:32 AM

ASP.NET Menu Control in IE8
While building a new website I stumbled upon a problem with the ASP.NET Menu Control. In all browsers, except IE8 the control works just fine. But in IE8 the dynamic parts of the menu are generated as blanks. Some investigation on the net learned me that this in normal behaviour build into IE8 by Microsoft. (????) There seems to be a problem with compatibility. luckily the solution is fairly simple. just make sure that your page(s) get rendered in IE7 compatibility mode. To do this add the following ......

Posted On Monday, June 15, 2009 7:40 AM

Using javascript prompt() in IE7
By default IE7 does not allow the prompt() method to be executed. But you can enable this again. In IE go to the menubar, select "Extra", "Options". Take the tab page "Security". Click the customize button at the security zone part. Look for "Websites are allowed to use scripts to prompt for information" and enable it. (screenshot on Dutch Vista) Clikc "Ok" twice. Close your browser and open it again. The pompt() function should now work ......

Posted On Thursday, March 19, 2009 2:17 PM

Copyright © Ben Bastiaensen | Powered by: GeeksWithBlogs.net