F
fred
Does anyone know why Language="C#" is required in the code in front of
aspx and ascx files?
for example in the header of my aspx file:
<%@ Control Language="c#" Inherits="Blah.Apps.Controls.Announcement"
CodeFile="Announcement.ascx.cs" %>
if i don't have that in the header, Announcement.ascx.cs in the IDE (VS
2005) will blow up with object does not exist in current context on any
c# code dealing like namespace declarations.
in vs2005 i have tools>options>text editior>file extension set for the
extension .cs - Microsoft Visual C# so shouldn't the aspx.cs and
ascx.cs know to use language C# without explicitly setting it in the
code in front header?
Any info on this is appreciated. Thanks.
- Fred
aspx and ascx files?
for example in the header of my aspx file:
<%@ Control Language="c#" Inherits="Blah.Apps.Controls.Announcement"
CodeFile="Announcement.ascx.cs" %>
if i don't have that in the header, Announcement.ascx.cs in the IDE (VS
2005) will blow up with object does not exist in current context on any
c# code dealing like namespace declarations.
in vs2005 i have tools>options>text editior>file extension set for the
extension .cs - Microsoft Visual C# so shouldn't the aspx.cs and
ascx.cs know to use language C# without explicitly setting it in the
code in front header?
Any info on this is appreciated. Thanks.
- Fred