.aspx get data from. cs files?
Is databind, bind or eval... only way of getting data form code behind (server side) in AS开发者_开发问答P.NET
No you can expose any data from the code using server tags. For example if you have a property in the codebehind thats an object called Person you can expose it like so
<p>Hello your name is <% =Person.Name%></p>
Edit: Any properties or methods can be accesses in this way as the aspx page essentially inherits from the codebehind class, but the accessors will need to be set to at least protected as a result
精彩评论