N ) Eval Function

                                    * Eval Function


  • Eval function is used to bind data in controls inside GridView, DataList, Repeater, DetailsView etc.
   Atrribute :-   '<%# Eval("column name")%>'

    Source :-
   ex .1) <asp:Label ID="Label1" runat="server" Text='<%# Eval("name") %>'></asp:Label>
  2) <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("name") %>'></asp:TextBox>
      3 ) <img src='pic/<%# Eval("Pimage") %>' /> 

            



                       * Naming Container Assigment Convert in Eval Function *

   

Comments

Popular posts from this blog

DATA CONTROL ( Gridview , Repeater , Formview , DataList , Detailsview , Listview )

Z 5 ) MVC (Model view Controller)

Z 8 ) MVC HTMLHELPER METHOD AND ACTIONLINK (how to use css ,atrributes,style in css)