how to use class more aspx pages

  • Thread starter Thread starter skech
  • Start date Start date
Hi Sketch,

Normaly to much work to type but it is Chrismass time
roughly written so can have errors
\\\\Your page
public class myASPX
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
dim mySketch as new sketch
me.label1.text= mySketch.myname
end sub
///
\\\ Your class that you can use on any aspx.vb page in your project
public class Sketch
private myInternName as string
public sub new
myInternName = "Sketch"
end sub
public readonly property myname as string
get
return myInternName
end get
end property
end class
///
 
Back
Top