How to write logic between Start and end namespace in vb.net
Namespace ERP 'start of namespace
Partial Class managerhomepage
Inherits System.Web.UI.Page
Private Sub Page_Init(ByVal...) 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
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'If Convert.ToString(Session("ut")) = "" Then
' Server.Transfer("ErpError.aspx")
'End If
End Sub
End Class
End Namespace 'end of namespace
Namespace ERP 'start of namespace
Partial Class managerhomepage
Inherits System.Web.UI.Page
Private Sub Page_Init(ByVal...) 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
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'If Convert.ToString(Session("ut")) = "" Then
' Server.Transfer("ErpError.aspx")
'End If
End Sub
End Class
End Namespace 'end of namespace
0 comments: