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.aspx.cs.
default.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
var myObject = new MyObject();
}
Is there a way that in the default.aspx I could do something like:
<%= myObject.SomePropertyOfThisObject%>
... or something similar, without having to use databinders or something complicated like this? And if there's no way around binding the data, what would be the best way to do it?