Archive for October, 2007

The Controls collection cannot be modified because the control contains code blocks

I got this error when trying to dynamically add controls to a page that contained script blocks like these: <% %> I use these scripts blocks a lot in javascript to get the appropriate ClientID. Luckily there is a simple fix, replace <%=Control.ClientID %> with this DataBind like expression: <%#Control.ClientID %> Make sure you call [...]

More »

Erlang

I’ve started reading _Programming Erlang_ by Joe Armstrong. This page contains some of my trails and errors of getting started in this fascinating new (for me anyway) language.So why Erlang? Why not Haskell, OCaml or maybe Ruby? I don’t know if there is a rational reason for me. It might be \”Erlang: The Movie\”:http://www.youtube.com/watch?v=uKfKtXYLG78 that [...]

More »

System.NotSupportedException: This page is missing a HtmlHead control which is required for the CSS

I got this error after upgrading ASP.NET Ajax Control Toolkit from version 1.0.10201 to version 1.0.10920. Turns out one of the ajax controls is trying to add a CSS link to the html head tag of the page.The solution is to make the head tag run at the server, like so: If only all problems [...]

More »

CascadingDropDown and ViewState

Using the CascadingDropDown from the \”ASP.NET Ajax Control Toolkit\”:http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Default.aspx can be somewhat challenging, because the ViewState does not behave like you might expect.I have an application where pages are shown in read-only mode by default. When the user wants to edit anything, he/she has to press an _Edit_ button which reloads the page in edit-mode. [...]

More »

Search

Enter your search terms Submit search form web programming.torensma.net var googleSearchIframeName = ‘googleSearchUnitIframe’; var googleSearchFrameWidth = 524; var googleSearchFrameborder = 0 ; var googleSearchDomain = ‘www.google.com’;

More »

SQL

(MS-)SQL snippets Amazon.co.uk Widgets

More »

Javascript

Amazon.co.uk Widgets

More »

Programming, a definition

pro·gram·ming /ˈproʊgræmɪŋ, -grəmɪŋ/ –noun 1. the act or process of planning or writing a program. 2. Radio and Television. a. the selection and scheduling of programs for a particular period, station, or network. b. the programs scheduled. Also, pro·gram·ing. This site is about the first meaning of the word.\”Any sufficiently advanced technology is indistinguishable from [...]

More »

DotNET

In my day to day job I am a .NET application developer. I use both C# and VB, depending on the clients wishes. On this page are some snippets that came in handy for me. Hope some of you find it helpfull as well :) Amazon.co.uk Widgets

More »

Method error 12030 when using CascadingDropDown

I followed the example about using CascadingDropDowns linked to a databse as described on http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Walkthrough/CCDWithDB.aspx Unfortunatly, the code contains a little bug, resulting a Method error 12030 or Method error 12031 being displayed in the dropdownlist, instead of the expected data. Because the webservice is being called from (java)script, using ASP.NET AJAX, the enclosing class [...]

More »