I am having a repeater within it there is label bounded with the Parking_Name Field and a button which is bouned to the Parking_ID field.
<asp:Repeater ID="repeater1" runat="server" DataSourceID="SqlDataSource1" OnItemDataBound="repeater1_ItemDataBound"> <ItemTemplate> <li> <asp:Label ID="lblName" runat="server" "><%#Eval("Parking_Name")%> </asp:Label></div> <asp:Button ID="Button1" runat="server" Text="Button" CommandArgument = '<%#Eval("Parking_ID")%>' />
How can bound the button with the Parking_Name as well ?
Regards
Like this
Edit
use like this
get both on page.aspx.cs like this