I have a page where I load a Table dynamically. Everything works fine. The table is loaded on the TextChanged event of a TextBox and it works fine going back and forth between dates. Some of the rows have a button. And on these rows I have 2 problems:
1) When I add a MaskedEditExtender to these rows, I get an "extender controls may not be declared before PreRender" error.
'Dim med As MaskedEditExtender
'med = New MaskedEditExtender
'med.TargetControlID = txt.ID
'med.ID = "med_horhi" & NumRow
'med.MaskType = MaskedEditType.Time
'med.Mask = "99:99"
'med.AutoComplete = True
'med.AutoCompleteValue = "00:00"
'med.ClearTextOnInvalid = True
'med.ClipboardEnabled = True
When I comment the lines, it works fine. This is only ever called from TextChanged.
2) The buttons work fine (basically, turn a textbox visible in a table cell). But then I can't read the changed value. Seeing as PlanTable is a global variable (in the Page scope anyway), and seeing that clicking the button causes a postback, the changed value of the textbox isn't saved. Any workaround for this?