using System;
using System.Text;
using System.Web.UI;

public partial class DetailsViewPagerSettings : Page
{
   protected void Page_Load(object sender, EventArgs e)
   {
      if (IsPostBack)
      {
         StringBuilder info = new StringBuilder();
         info.AppendFormat("Przeglądanie rekordu {0} z {1}<br />",
            CustomerDetails.DataItemIndex.ToString(), CustomerDetails.DataItemCount.ToString());

         for (int i = 0; i < CustomerDetails.DataKeyNames.Length; i++)
         {
            info.AppendFormat("{0} : {1}<br />", CustomerDetails.DataKeyNames[i], CustomerDetails.DataKey.Values[i]);
         }

         info.AppendFormat("Zaznaczona wartość: {0}", CustomerDetails.SelectedValue.ToString());

         lblInfo.Text = info.ToString();
      }
   }
}
