Author: My Crystal | Posted on: 4/8/2009 11:10:46 PM | Views : 407

Web form in VS 2005/2008 will generate XHTML because of the declaration of the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

but web form in VS 2003 will generate HTML rather than XHTML because of the declaration of the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>

There is a web control that was developed using VS 2003, when it is used in VS 2005/2008, it is not displayed properly and

has some javascript malfunction in the broswer. But when it is used in vs 2005/2008 and I change the XHTML declaration to

HTML declaration in the aspx file, this control works properly as expected. So, I guess ...

Go to the complete details ...