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
///
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.