用户控件里面的按纽事件取不到TextBox的值
用户控件里面的按纽事件取不到TextBox的值
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim PageCount As Integer = Convert.ToInt32(lblPageCount.Text) (LABEL)
Dim PageIndex As Integer = Convert.ToInt32(lblPageIndex.Text)//这里取不到值,上面的可以(TEXTBOX)
End Sub
大家帮忙看看是怎么会事呢!!!
------解决方案--------------------
怎么个取不到值? 是取到的值 和想象的不一样是么?
先检查ispostback