Tuesday, 16 June 2009

AJAX Control Toolkit and DOCTYPE used


I was adding Ajax functionality to an ‘old’ asp.net page and was stuck as to why the tab container control was rendering in an strange way, e.g.:


It turned out that the DOCTYPE was wrong. To fix the problem I changed from:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

the control then rendered as expected:


The xhtml doctype is added by default by visual studio so only a problem when enhancing

Technorati Tags: ,

older code.

No comments: