M
Mike Christie
I've got some Java experience but no JSP or ASP and am trying to get to grips
with ASP.NET. I'd appreciate some help on a simple question.
I have been able to get databinding to work, and can display a string obtained
from the database on the screen by binding it to a label. However, if I have
an object instantiated in the page's scope, it seems like there should be an
easier way to output a string that I obtain from that object. I gather that
in JSP there was some syntax like:
<%= myObject.aStringProperty %>
that would substitute the value of this as a literal in the middle of the
html. I tried this syntax in ASP.NET with no luck; is there something
analogous? The reference I'm using (Wrox's "Professional C#") while pretty
good in many ways is a bit light on detailed ASP examples, and I couldn't find
anything about this in the ASP tutorials I looked at.
Thanks for any help.
Mike
with ASP.NET. I'd appreciate some help on a simple question.
I have been able to get databinding to work, and can display a string obtained
from the database on the screen by binding it to a label. However, if I have
an object instantiated in the page's scope, it seems like there should be an
easier way to output a string that I obtain from that object. I gather that
in JSP there was some syntax like:
<%= myObject.aStringProperty %>
that would substitute the value of this as a literal in the middle of the
html. I tried this syntax in ASP.NET with no luck; is there something
analogous? The reference I'm using (Wrox's "Professional C#") while pretty
good in many ways is a bit light on detailed ASP examples, and I couldn't find
anything about this in the ASP tutorials I looked at.
Thanks for any help.
Mike