Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Adding ajax:RoundedCornersExtender Dynamically

$
0
0

I have a page where I have a Accordion panel but adding the panes dynamically:

 pn = new AjaxControlToolkit.AccordionPane();
 pn.ID = "Pane" +  dr["PostingID"].ToString();

I'd like to be able to round the corners of these panes. The issue is that the ajax:RoundedCornersExtender requires a TargetControlID which is created at runtime (see above). The above snippet is part of a loop, so there are many panes created.

Is there a way to round the corners of the panes? Is there a way to add the ajax:RoundedCornersExtender dynamically and set the TargetControlID dynamically as well?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>