Change this:
Partial Class MasterPage
Inherits System.Web.UI.MasterPage
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim CurrentState As String = "Colorado"
End Sub
End Class
to
Partial Class MasterPage
Inherits System.Web.UI.MasterPage
Public CurrentState as String
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
CurrentState = "Colorado"
End Sub
End Class
and this
var currentState = "<% Response.Write(CurrentState) %>";
to
var currentState = "<%= CurrentState %>";
hth
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========