vb.net - asp.net pass variable from code behind to .aspx -


I think I'm missing something here, but I have no way of passing a simple variable behind my code Can not find file on .aspx page.

In my following code:

String = "test" as a slow test

and in my aspx page I Try:

This gives me the following error: Error 2's 'test' has not been declared

Am I forgetting something here?

Announce as a property (at the class level) instead of a local variable, See in your markup (ASPX)

VB.NET 10 (No Support Automated Properties)

  Return as the Private _test string as a Protected Property Test _test end set (value as string) _test = value End Set End Property  

With the property in place, you should assign a value directly to it in your code.


Comments