I have a custom server control with a property of Title. When using the control, I\'d like to set the value of the title in the aspx page like so:
You cant. <%= %> will write the string directly to the response-stream, which happens after the server control is constructed. See this post for an explanation.
So its either codebehind, or <%# + databinding as Zachary suggests.