Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
GridView1.PageIndex = e.NewPageIndex
GetData()
End Sub
Private Sub GetData()
Dim ds As New DataSet()
ds.ReadXml(Server.MapPath(”.”) & “\..\Xml\PartList.xml”)
Me.GridView1.DataSource = ds.Tables(0).DefaultView
Me.GridView1.DataBind()
ds.Clear()
ds.Dispose()
g = Nothing
‘Me.Dispose()
End Sub
全站熱搜
留言列表