Sunday, March 11, 2012

Value from unordered list item generated by Repeater

Dear, Roger:

How do you bind the TeamID to the Repeater?


Hi Rex:

Here's the code I use to bind:

repTeamsNav.DataSource = new Team_MembersBLL().GetTeamsByPersonID(mr.Person_ID);
repTeamsNav.DataBind();


Regards,

Roger


Dear, friend:

You can bind the ID to the NavigateURL of the Hyperlink:

NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "title_id", "purchase_cs.aspx?titleid={0}") %>'


Rex - a belated thanks for this - works great.

Roger

No comments:

Post a Comment