Data Binding

Jump to: navigation, search
Data Access » Data Binding


Single-Value Binding

This is an example of a single value databinding in a control

<%# expression_goes_here %>

Here are more examples

<%# GetUserName() %>

<%# 1 + (2 * 20) %>

<%# "John " + "Smith" %>

<%# Request.Browser.Browser %>

When databinding in a user control you might need to use an apostraphe instead of double quotes so this ' instead of "

I have also found with using single value databinding in Sitefinity situations you might have to use the = operator instead of the # sign

Personal tools
Namespaces
Variants
Actions
Navigation
Categories
Toolbox