asp.net - Pages are calling the wrong codebehind? -
i have project i'm working on in visual studio 2003 , sql server 2005 environment. lately i've been having trouble codebehind files aspx web pages. pages referring codebehind other pages.
recently, example, copied page 1 of projects use starting point (it form multiple pages), after renaming it, codebehind , other files followed suit. after modifying page needed, found out still referencing old codebehind (making references controls no longer there).
i checked aspx code, , reference correctly pointing new codebehind. i've tried building , re-building project several times, resetting iis, deleting temp files , modifying web config. no dice.
if copy page in visual studio , rename it, automatically change codebehind
attribute in <%@ page
declaration on .aspx
markup.
but won't change name of class in codebehind file, or class inherits
attribute on declaration points to.
firstly, change inherits
new class name - should automatically change designer file use same class name.
then change class definition in code-behind file.
Comments
Post a Comment