Hi,
I have got a web blog application
the person who has designed it has put all the code in app_code
vb classes
how is that? he has ot used codebehind he has just referenced from the pages to the classes like this: inherits="myNamespace.blog"
what is the advantage?is it more professional?
is the any good article about this object oriented programming
here is some sample code:
Namespace myNamespace
Public Class Blog
Inherits System.Web.UI.UserControl
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private designerPlaceholderDeclaration As System.Object
Protected WithEvents LblMember As System.Web.UI.WebControls.Label
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
LblMember.text = "title"
End If
End Sub
End Class
End Namespace