Reputation: 2230
I am working on learning asp.net a little, and have found that the 'internal' keyword modified attribute members of a different class from the codebehind but in the same project as an aspx file are not visible from that aspx inline markup. Is there a reason for that scoping separation? Relatedly, assuming the server hosting the asp.net website code will be reasonably secured, is there a security risk with marking things like, as an example, database connection string credential literals with the public modifier?
Upvotes: 0
Views: 130
Reputation: 161781
internal
means "visible within the same assembly". In ASP.NET, the markup and the codebehind may not be in the same assembly.
Upvotes: 1