In a page, on the load event, I am dynamically creating controls for display on the page. This is all working properly. the trouble I am having is when adding extenders from the AJAX control toolkit, specifically I am trying to add rounded corners to a button control. No errors are thrown, but the AJAX Extension functionality does not appear in the displayed page.
Does anyone have any ideas on what I am not doing correctly, or if its even possible?
Dim container As HtmlGenericControl
Dim edit As Button
Dim editRoundedCorners As AjaxControlToolkit.RoundedCornersExtender
For each item in items
container = New HtmlGenericControl("div")
container.ID = "container_" & item.code
edit = New Button()
edit.ID = "edit_" & item.code
edit.Text = "Edit"
edit.Style("padding") = "0 0 0 4px"
edit.SkinID = "smallEditButton"
editRoundedCorners = New AjaxControlToolkit.RoundedCornersExtender()
editRoundedCorners.BorderColor = edit.BorderColor
editRoundedCorners.ID = edit.ID & "_RoundedCorners"
editRoundedCorners.Corners = AjaxControlToolkit.BoxCorners.All
editRoundedCorners.Radius = 3
editRoundedCorners.TargetControlID = edit.ID
container.Controls.Add(editRoundedCorners)
container.Controls.Add(edit)
pageContainer.Controls.Add(container)
Next
(pageContainer is a div on the page)