L
Luis Ferrao
Hi,
I have some code that looks like this:
-- CODE ----------------------------
Public Class NodeEditor
Inherits System.Web.UI.Page
Protected WithEvents ChildList As System.Web.UI.WebControls.ListBox
Private Sub Page_Load(...) Handles MyBase.Load
'nothing relevant to the ChildList
End Sub
Private Sub SubmitButton_Click(...) Handles SubmitButton.Click
Dim count As Integer = ChildList.Items.Count
End Sub
-- CODE ----------------------------
Why is the value of 'count' zero no matter how many elements are added
to the ListBox in clientside jscript code?
In other words, why arent clientside changes being reflected after the
form is posted?
Thanks in advance,
Luis
I have some code that looks like this:
-- CODE ----------------------------
Public Class NodeEditor
Inherits System.Web.UI.Page
Protected WithEvents ChildList As System.Web.UI.WebControls.ListBox
Private Sub Page_Load(...) Handles MyBase.Load
'nothing relevant to the ChildList
End Sub
Private Sub SubmitButton_Click(...) Handles SubmitButton.Click
Dim count As Integer = ChildList.Items.Count
End Sub
-- CODE ----------------------------
Why is the value of 'count' zero no matter how many elements are added
to the ListBox in clientside jscript code?
In other words, why arent clientside changes being reflected after the
form is posted?
Thanks in advance,
Luis