Good day,
With regard to ASP.NET 1.1, there are two things that I am struggling with. One is master pages - are they just out-right incombatible with 1.1?
The other issue is code-behind files. I found a listing the other day that offered a slightly different syntax for 1.1 than 2.0, and am wondering if this is correct:
Here is the 2.0 way:
Now the 1.1 way, where you have to explicitly give the codefile a Namespace:
Those are my two questions for the day! The first one I expect yes/no, and the second I'm just looking for an explination on why the 1st method doesn't work in ASP.NET 1.1
Thank you.
~Melagan
______
"It's never too late to become what you might have been.
With regard to ASP.NET 1.1, there are two things that I am struggling with. One is master pages - are they just out-right incombatible with 1.1?
The other issue is code-behind files. I found a listing the other day that offered a slightly different syntax for 1.1 than 2.0, and am wondering if this is correct:
Here is the 2.0 way:
Code:
<!-- .aspx file -->
<%@ Page Inherits="_Default" CodeFile="default.aspx.vb" %>
<!-- aspx.vb file -->
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Public Class _Default : Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'Do something here
End Sub
End Class
Now the 1.1 way, where you have to explicitly give the codefile a Namespace:
Code:
<!-- .aspx file -->
<%@ Page Inherits="myNameSpace._Default" %>
<!-- aspx.vb file -->
Namespace MyNameSpace
Partial Class _Default : Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'Do something here
End Sub
End Class
End Namespace
Those are my two questions for the day! The first one I expect yes/no, and the second I'm just looking for an explination on why the 1st method doesn't work in ASP.NET 1.1
Thank you.
~Melagan
______
"It's never too late to become what you might have been.