Because everytime your page refreshes, the value of G_Index is set to 1 in your page_load event.

You would need to wrap it in the check condition whether page is postbacking or loading for the first time.

vb.net Code:
  1. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  2.  
  3. If Not Page.IsPostBack
  4.      G_Index = 1
  5. End If
  6.  
  7. End Sub