I need to initialize the text attribute of the text box element with a property from some where else when actually I can simply do this from code but it will be much m
The short answer is NO, you can only use this kind of code with databindings, that means inside a GridView for example. But you can use this in the head section.
I use it to prefix my urls sometimes with something predefined. Example