HI
I have two metod in my page that I call one of them in pageload event and when page is load it call metod and according to that metod my datalist1 will bind from database.
and I have repeater in my page that I bind it from database
protected void Page_Load(object sender, EventArgs e)
{
BindRepeater(rptMenuE, "electricmenu1");
if (!IsPostBack)
{
BindDropDownList(DDLcity1, "city1", "name");
BindDropDownList(DDLstore1, "Guidcenter", "Centername");
this.GetCustomersPageWise(1);
}
protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
{
this.GetCustomersPageWiseStore(1);
}
Now my problem is:
when I click on Imagebutton2 ,datalist2 will fill with GetCustomersPageWiseStore() metod but when I click on Item from repeater it call GetCustomerPageWise() metod that I call in Page_load event
I want when I click On imgebutton2 and select Item from repeater it again call GetCustomersPageWiseStore() metod that I call in Imagebutton2_click event
How I can do it ?
Thanks alot