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
Post a Comment