This might be a really dumb question but I\'m learning .NET, so I\'m quite clueless...
Let\'s say I have two files default.aspx and the associated default.a
The <%= ... %> is ASPX short-hand for Response.Write( .... )
.
If you change myObject to be strongly types (rather than just types as Object) you can certain use the line:
<%= myObject.Awesome %>
to emit a value.
Be aware, however, that the <%= syntax has limitations - specifically:
You are probably better off creating a Label control on you page, and programmatically setting the Text
property to the value. This also gives you more control over how value-to-string conversions are performed. And will work correctly with update panel controls.