protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         LeadSourceManager.LoadLeadSourcePage(gvLeadSource, rptPager, 1, ddlPageSize);
     }
 }
    protected void lbDelete_Click(object sender, EventArgs e)
    {
        ImageButton linkButton = new ImageButton();

        linkButton = (ImageButton)sender;
        bool result = LeadSourceManager.DeleteLeadSource(Convert.ToInt32(linkButton.CommandArgument));

        LeadSourceManager.LoadLeadSourcePage(gvLeadSource, rptPager, 1, ddlPageSize);
    }
    protected void Page_Changed(object sender, EventArgs e)
    {
        int pageIndex = int.Parse((sender as LinkButton).CommandArgument);

        LeadSourceManager.LoadLeadSourcePage(gvLeadSource, rptPager, pageIndex, ddlPageSize);
    }
 protected void PageSize_Changed(object sender, EventArgs e)
 {
     LeadSourceManager.LoadLeadSourcePage(gvLeadSource, rptPager, 1, ddlPageSize);
 }