Configuration required to get Sencha ExtJS TreeGrid example working

if you inspect treegrid.js you’ll see that it requires treegrid.json (JSON-formatted data file). when you visit http://24.177.214.232:8888/examples/tree/treegrid.json (which is the path where treegrid.js expects treegrid.json) you’ll see, that there is no such file. fix the path or create a data file : ) EDIT you can find proper JSON here: http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/tree/treegrid.json

IIS URL Rewrite ASP

If you want to use regular expressions you could do something like this <rule name=”RewriteUserFriendlyURL1″ stopProcessing=”true”> <match url=”^([^/]+)/([^/]+)/?$” /> <conditions> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” /> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” /> </conditions> <action type=”Rewrite” url=”default.asp?language={R:1}&amp;id={R:2}” /> </rule> This would rewrite “domain.com/en/service” as “domain.com/default.asp?language=en&id=Service”, or “domain.com/2/3” as “domain.com/default.asp?language=2&id=3” To change the 2 to en and the 3 … Read more

Allow loading of JSON files in Visual Studio Express 2013 for Web

After some more googling, and experimenting I found out, that you have to define IIS settings in the Web.config. After adding the following configuration: <system.webServer> <staticContent> <mimeMap fileExtension=”.json” mimeType=”application/json” /> </staticContent> </system.webServer> it works like a charm. Full setup file example: <?xml version=”1.0″?> <configuration> <system.web> <compilation debug=”true” targetFramework=”4.0″/> </system.web> <system.webServer> <staticContent> <mimeMap fileExtension=”.json” mimeType=”application/json” /> … Read more