How can I get pass the DataKey of a GridView to a usercontol, preferably without code behind.
Why doesn't this work:
<ucOrderDetails:AJAX_OrderDetail ID="od1" runat="server" OrderNumber='<%# GridView1.SelectedValue.ToString() %>' />
GridView1 is just a list of orders with a DataKey of OrderNumber.
od1 is not inside of a databout control, does it need to be?
View Complete Post