Ajax ASP.Net Tutorial

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


    
    

            id="sm1"
        Runat="server" />
    Page Time: <%= DateTime.Now.ToString("T") %>
    
            id="ddlProduct"
        DataSourceID="srcProducts"
        DataValueField="Id"
        DataTextField="Title"
        AutoPostBack="true"
        Runat="server" />
            id="srcProducts"
        ConnectionString='<%$ ConnectionStrings:con %>'
        SelectCommand="SELECT Id, Title FROM Product"
        Runat="server" />
    
    
    
        
    

    
    Outer UpdatePanel Time: <%= DateTime.Now.ToString("T") %>
    
            id="frmProduct"
        DataSourceID="srcProduct"
        Runat="server">
        
        

    Product
    Title: <%# Eval("Title") %>
    
    Director: <%# Eval("Director") %>
    
    
            id="lstProductComments"
        DataSourceID="srcProductComments"
        InsertItemPosition="FirstItem"
        Runat="server">
        
            

            Comments
            Inner UpdatePanel Time: <%= DateTime.Now.ToString("T") %>
            
            

        
        
        
            
            <%# Eval("Comment") %>
            

        
        
                    id="lblComment"
            Text="Comment:"
            AssociatedControlID="txtComment"
            Runat="server" />
        
                    id="txtComment"
            Text='<%# Bind("Comment") %>'
            TextMode="MultiLine"
            Columns="40"
            Rows="3"
            Runat="server" />
        
                    id="btnInsert"
            Text="Add Comment"
            CommandName="Insert"
            Runat="server" />
        

        
        
        
                    id="srcProductComments"
            ConnectionString='<%$ ConnectionStrings:con %>'
            SelectCommand="SELECT Id, Comment
                FROM ProductComment
                WHERE ProductId=@ProductId"
            InsertCommand="INSERT ProductComment (Comment,ProductId)
                VALUES (@Comment,@ProductId)"
            Runat="server">
            
                
            

            
                
            

        
        
        
    
    
    
            id="srcProduct"
        ConnectionString='<%$ ConnectionStrings:con %>'
        SelectCommand="SELECT Id, Title, Director
            FROM Product
            WHERE Id=@Id"
        Runat="server">