Chris,
Thanks. I am glad it is you responding. I like your c# model (related and posts) - Thanks. I have been coding in C# lately, but my first two were in VB. Here is the latest C#. If you see the cause, let me know.
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
ddlRecordsPerPage.SelectedIndexChanged += new EventHandler(ddlRecordsPerPage_SelectedIndexChanged);
btnSearch.Click += new System.Web.UI.ImageClickEventHandler(btnSearch_Click);
}
private void Page_Load(object sender, System.EventArgs e)
{
try
{
if (Request.QueryString["CurrentPage"] != null)
CurrentPage = Convert.ToInt32(Request.QueryString["CurrentPage"]);
else
CurrentPage = 1;
if (Request.QueryString["filter"] != null)
strFilter = Request.QueryString["filter"];
else
strFilter = "%%";
if (!Page.IsPostBack)
{
if (Request.QueryString["PageRecords"] != null)
ddlRecordsPerPage.SelectedValue = Request.QueryString["PageRecords"];
BindData(strFilter);
}
}
catch (Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}