Return to Snippet

Revision: 22201
at January 5, 2010 15:10 by cardiffblogger


Initial Code
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(); 
        }

Initial URL

                                

Initial Description

                                

Initial Title
Set DefaultValue of ObjectDataSource parameter from within a child nested repeater

Initial Tags

                                

Initial Language
C#