Data Binding ASP.Net Tutorial

<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    public string FormatTitle(Object title)
    {
        return "" + title.ToString().ToUpper() + "";
    }



    Format Default Titles


    
    

            id="Repeater1"
        DataSourceId="srcDefaults"
        Runat="server">
        
        <%# FormatTitle(Eval("Title")) %>
        
        

    
            id="srcDefaults"
        ConnectionString="Data Source=.\SQLExpress;
            AttachDbFilename=|DataDirectory|MyDatabase.mdf;
            Integrated Security=True;User Instance=True"
        SelectCommand="SELECT Title FROM Defaults"
        Runat="server" />