/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { ObjectDataSource ObjectDataSource2 = (ObjectDataSource) e.Item.FindControl("ObjectDataSource2"); ObjectDataSource2.SelectParameters["XXXXXX"].DefaultValue = DataBinder.Eval(e.Item.DataItem, "XXXXXXXX").ToString(); }