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

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 包爾伯 的頭像
    包爾伯

    人生過程精彩才是重點

    包爾伯 發表在 痞客邦 留言(0) 人氣()