Hi the data return by a procedure has many GoalTypeIDs
and i would like to display the unique GoalTypeIDs only.
so i'm thinking that i will have to array the types and check to see if they have been used.... i am not having success with this, any suggestions ?
protected void dlGoalsDataBound(object sender, DataListItemEventArgs e)
{
ArrayList Goals = new ArrayList();
foreach (string e.Item in Goals)
{
if (e.IndexOf(Goals) < 0)
{
HyperLink tmpLnk = (HyperLink)e.Item.FindControl("HyperLink1");
Label tmpLbl = (Label)e.Item.FindControl("Label1");
Session["GoalTypeID"] = tmpLbl.Text;
tmpLnk.NavigateUrl = "~/member-area/goals/default.aspx?nav=g&id=" + tmpLbl.Text + "";
}
}
}
and i would like to display the unique GoalTypeIDs only.
so i'm thinking that i will have to array the types and check to see if they have been used.... i am not having success with this, any suggestions ?
protected void dlGoalsDataBound(object sender, DataListItemEventArgs e)
{
ArrayList Goals = new ArrayList();
foreach (string e.Item in Goals)
{
if (e.IndexOf(Goals) < 0)
{
HyperLink tmpLnk = (HyperLink)e.Item.FindControl("HyperLink1");
Label tmpLbl = (Label)e.Item.FindControl("Label1");
Session["GoalTypeID"] = tmpLbl.Text;
tmpLnk.NavigateUrl = "~/member-area/goals/default.aspx?nav=g&id=" + tmpLbl.Text + "";
}
}
}