コード例 #1
0
    protected void FixtureInfoDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
    {
        IEnumerable <FixtureListInfo> results;

        if (reference == null)
        {
            reference = cbFixture.SelectedItem.Value;
        }

        results = model.GetFixtureInfoDetails(reference);

        ClubInfoLink.HRef = "clubinfo.aspx?id=" + (from ee in results
                                                   select ee.Location).SingleOrDefault();


        e.Result = results;
    }