* 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=" TextBox 1" runat="server" Text= '<%# Eval("name") %>' ></asp: TextBox > 3 ) < img src ='pic/<%# Eval("Pimage") %>' />
Comments
Post a Comment