Home » 2012 » March » 28

Archive for March 28, 2012

VB.NET – passing string value from code behind to markup on the page

Solution 1 Protected doit As String = “Hello” (in .vb file) < %=Me.doit%> (inside the markup) Solution 2 ‘automatic properties Protected Property doit2 As String = “Hello” (in .vb file) < %=doit2%> (inside the markup) ‘no automatic properties Private _doit3 As String (in .vb file) Protected Property doit3 As String Get Return _doit3 End Get […]