|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if
(!IsPostBack)
{
System.Collections.SortedList SL = new System.Collections.SortedList();
SL.Add("val1", "Text1");
SL.Add("val2", "Text2");
SL.Add("val3", "Text3");
SL.Add("val4", "Text4");
SL.Add("val5", "Text5");
SL.Add("val6", "Text6");
SL.Add("val7", "Text7");
SL.Add("val8", "Text8");
SL.Add("val9", "Text9");
rep1.DataSource = SL;
rep1.DataBind();
DataPagerRepeater1.DataSource = SL;
DataPagerRepeater1.DataBind();
}
}
protected void rep1_TotalRowCountAvailable(object sender, PageEventArgs e)
{
}
protected void rep1_FetchingData(object sender, PageEventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
System.Collections.SortedList SL = new System.Collections.SortedList();
SL.Add("val1", "Text11");
SL.Add("val2", "Text12");
SL.Add("val3", "Text13");
SL.Add("val4", "Text14");
SL.Add("val5", "Text15");
SL.Add("val6", "Text16");
SL.Add("val7", "Text17");
DataPagerRepeater1.DataSource = SL;
DataPagerRepeater1.DataBind();
UpdatePanel1.Update();
}
protected void Button2_Click(object sender, EventArgs e)
{
System.Collections.SortedList SL = new System.Collections.SortedList();
SL.Add("val1", "Text11");
SL.Add("val2", "Text12");
SL.Add("val3", "Text13");
SL.Add("val4", "Text14");
SL.Add("val5", "Text15");
SL.Add("val6", "Text16");
SL.Add("val7", "Text17");
DataPagerRepeater1.DataSource = SL;
DataPagerRepeater1.DataBind();
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Working with web application development since 1999.
Developer of the CMS product Publech (www.publech.com) and a large range of other Publech modules.
Involved in developing the largest non commercial website in Sweden the Swedish Public Employment Service (www.ams.se)