﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-Evil`s Graffiti</title><link>http://www.cnitblog.com/stephen0213/</link><description>Design</description><language>zh-cn</language><lastBuildDate>Tue, 05 May 2026 03:13:06 GMT</lastBuildDate><pubDate>Tue, 05 May 2026 03:13:06 GMT</pubDate><ttl>60</ttl><item><title>编译时出现：请确保此代码文件中定义的类与“inherits”属性匹配，并且该类扩展的基类(例如Page 或UserControl)是正确的。</title><link>http://www.cnitblog.com/stephen0213/archive/2007/04/30/26413.html</link><dc:creator>混世魔王</dc:creator><author>混世魔王</author><pubDate>Sun, 29 Apr 2007 17:21:00 GMT</pubDate><guid>http://www.cnitblog.com/stephen0213/archive/2007/04/30/26413.html</guid><wfw:comment>http://www.cnitblog.com/stephen0213/comments/26413.html</wfw:comment><comments>http://www.cnitblog.com/stephen0213/archive/2007/04/30/26413.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/stephen0213/comments/commentRss/26413.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/stephen0213/services/trackbacks/26413.html</trackback:ping><description><![CDATA[编译ASP.NET时，提示<font size=-1><font color=#cc0033>&#8220;<span style="COLOR: red">请确保此代码文件中</span></font><font style="COLOR: red" color=#cc0033>定义的类</font><span style="COLOR: red">与&#8220;</span><font style="COLOR: red" color=#cc0033>inherits</font><span style="COLOR: red">&#8221;</span><font style="COLOR: red" color=#cc0033>属性匹配</font><span style="COLOR: red">，</span><font style="COLOR: red" color=#cc0033>并且该类扩展的基类</font><span style="COLOR: red">(例如Page 或UserControl)是正确的。&#8221;</span>，<span style="FONT-SIZE: 14pt">想起自己加过namespace，去掉后编译正常，但是我希望加入namespace，解决方式：在ASPX页面中的inherits后加入命名空间的名称，比如原来是inherits="video_index"，命名空间为joymo，现在改成inherits="joymo.video_index"即可。</span></font> 
<img src ="http://www.cnitblog.com/stephen0213/aggbug/26413.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stephen0213/" target="_blank">混世魔王</a> 2007-04-30 01:21 <a href="http://www.cnitblog.com/stephen0213/archive/2007/04/30/26413.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>