BeetleDev.com
info
Monday, July 13, 2020
Beetle Blog
Dreamweaver MX does not color code .ascx files correctly
By: douglas - Misc - 1/8/2003 12:00:00 AM

Dreamweaver MX does not recognize .ascx files as ASP.net files. When opened they are not color coded as ASP.net files.

This problem can be solved by editing the server model configuration file. Be sure to backup any files before modifying them.

Open C:\Program Files\Macromedia\Dreamweaver MX\Configuration\ServerModels\ASP.NET_Csharp.htm. The VB.net file is named ASP.NET_VB.htm.

Find the function canRecognizeDocument(dom).

Edit the line var langRE = /@\s*page\s*language\s*=\s*(\"|\')?c#(\"|\')?/i;
to accept the "Control" header.

Or set the function to return 1 always.

This solution was provided by julesr on the asp.net forums.

 


Last Modified: 1/8/2003 12:00:00 AM

Beetle Blog v0.2.2


Copyright © 1997 - 2020 BeetleDev.com. All rights reserved.