C
clintonG
I've posted to the forums but we're not making progress there yet so maybe,
just maybe somebody has this figured out...
When VS2005 creates a new Web Form with code placed in a separate file we
get the following:
WebForm1.aspx
WebForm1.aspx.cs
Both files are in the root of the project directory. I move WebForm1.aspx.cs
to the App_Code folder.
To test I declared Label1 in WebForm1.aspx and attempt to modify the Label1
text property as Label1.Text = Hello World"; in the Page_Load event of
WebForm1.aspx.cs but an error results.
Apparently moving the .cs files to App_Code folder not supported?
We've tried pathing and using the new page directive syntax but perhaps
incorrectly?
Any comments on this? It seems broken as all code is 'sposta' be within a
partial class so why wouldn't the compiler know how to cope when the .cs
files are moved to the App_Code folder?
<%= Clinton Gallagher
just maybe somebody has this figured out...
When VS2005 creates a new Web Form with code placed in a separate file we
get the following:
WebForm1.aspx
WebForm1.aspx.cs
Both files are in the root of the project directory. I move WebForm1.aspx.cs
to the App_Code folder.
To test I declared Label1 in WebForm1.aspx and attempt to modify the Label1
text property as Label1.Text = Hello World"; in the Page_Load event of
WebForm1.aspx.cs but an error results.
Apparently moving the .cs files to App_Code folder not supported?
We've tried pathing and using the new page directive syntax but perhaps
incorrectly?
Any comments on this? It seems broken as all code is 'sposta' be within a
partial class so why wouldn't the compiler know how to cope when the .cs
files are moved to the App_Code folder?
<%= Clinton Gallagher