Dynamically generated anchor does not post back when id is populated
Strange. It seems that whenever I populate the id property of a
dynamically generated htmlanchor the postback method stops working.
Dim ancAction As New HtmlAnchor
AddHandler ancAction.ServerClick, AddressOf HandleEditClick
ancAction.ID = "edit:" & x.xId
divAction.Controls.Add(ancAction)
HandleEditClick will fire when I comment out the line that populates the
id property.
Any help would be appreciated.
No comments:
Post a Comment