R
RA
btnAdd_Click does not get hit; if I have IsPostBack check in Page_load. If I
don't have IsPostBack check; I am able to debug through btnAdd_Click.
If I don't look for IsPostBack then it re-populates the table before doing
anything; which I don't want.
Following is the code.
private sub page_load(.......)
'
if ispostback = false then
populatetable
end if
End sub
private sub populatetable()
' besides other data, there is a button has been added to a TableCell of a
TableRow and for that button I also have following line 'of code
btnAdd.CommandName = "TableInfo"
AddHandler btnAdd.Command, AddressOf btnAdd_Click
end sub
Public Sub btnAdd_Click(ByVal sender As Object, e As _
System.EventArgs)
' code here, when "Add" button is clicked
End Sub
would really appreciate any help on this
don't have IsPostBack check; I am able to debug through btnAdd_Click.
If I don't look for IsPostBack then it re-populates the table before doing
anything; which I don't want.
Following is the code.
private sub page_load(.......)
'
if ispostback = false then
populatetable
end if
End sub
private sub populatetable()
' besides other data, there is a button has been added to a TableCell of a
TableRow and for that button I also have following line 'of code
btnAdd.CommandName = "TableInfo"
AddHandler btnAdd.Command, AddressOf btnAdd_Click
end sub
Public Sub btnAdd_Click(ByVal sender As Object, e As _
System.EventArgs)
' code here, when "Add" button is clicked
End Sub
would really appreciate any help on this