Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Properties on a page

Status
Not open for further replies.

M8KWR

Programmer
Aug 18, 2004
864
GB
Hopefully a simple questions

I have got a property

Public ReadOnly Property Test() As String
Get
Return "Hello World"
End Get
End Property

I am trying to display this on webpage by using

<%# Test.ToString%>

But it is not working.

Any help/assistance would be great, as I know I am missing something simple but unsure what!
 
resolved it

I forgot to use Databind()

I knew it was something simple :)
 
Or
<%= Test.ToString%>

Or better yet, display it from the code behind: ex. label1.text = Test
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top