code behind/ page inherits?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why is it that many reference books list "src" as an acceptable method to
inherit the code behind page but Visual Studio doesn't support it? I've had
trouble using the auto-populated tag so I've started using "src" and my pages
work fine. The only problem is that I loose the Design view because it says
that "src" is not supported.

My method:
<%@ Page Inherits="concern" src="concern.aspx.vb"
CodeBehind="concern.aspx.vb" Language="vb"%>

auto-populated VS code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="qc2005.WebForm1"%>
 
"src" is used with non-compiled ASP.Net apps, to indicate at run-time where
the CodeBehind class file is located. "CodeBehind" is used by Visual
Studio.Net to indicate at design-time where the CodeBehind file is located.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Back
Top