I have a problem with my PageIndexChanging code. When my page first load i have code that executes on the Page_Load Event that retries data to a dropdown. When I select a value from the dropdown control it populates a GridView. When I try to select a different page within the Paging of the GridView i do not see the results nor do i receive an error.
Please see my code below:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
'Binds data to DropDownList1
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
'Binds results from DropDown and displays the values in the GridView
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
GridView1.PageIndex = e.NewPageIndex
8/22/2022 - Mon
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!