| 发表于:2007-03-12 20:23:35 楼主 |
就一个页面,什么都没有,我自己添加一个命名空间的话就出问题 using system; using system.data; using system.configuration; using system.collections; using system.web; using system.web.security; using system.web.ui; using system.web.ui.webcontrols; using system.web.ui.webcontrols.webparts; using system.web.ui.htmlcontrols; namespace edge.projects.intel._test//问题所在 { public partial class members_test : system.web.ui.page { protected void page_load(object sender, eventargs e) { } } } -------------------------------------------------- <%@ page language= "c# " autoeventwireup= "true " codefile= "test.aspx.cs " inherits= "members_test " %> <!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 " > <head runat= "server "> <title> untitled page </title> </head> <body> <form id= "form1 " runat= "server "> <div> </div> </form> </body> </html> ------------------------------ 出现问题:aspnet: make sure that the class defined in this code file matches the 'inherits ' attribute, and that it extends the correct base class (e.g. page or usercontrol). |
|
|
|
|