ASP.NET AJAX

First, nice work. Haven't done a lot of cross browser testing, but I'm guessing it'll work pretty well.

I've got an interesting problem. I use ASP.NET AJAX to render different areas of my website, and when I try to use a rounded border on a div within one of these AJAX areas, the shadedborders code doesn't get run.

When you think about it, it's pretty obvious why. The javascript that causes the rounding to occur is only in the bottom of the main page, which isn't getting re-rendered.

Anyone have any experience with AJAX and ShadedBorders, and how to get around this problem? I tried adding the script within the HTML that's getting rendered, but it doesn't seem to work.

Trackback URL for this post:

http://www.ruzee.com/trackback/231

This works for rounded

This works for rounded borders so simiar should work for rounded. Add this after the script manager declaration:

This will re-trigger the render call when the ajax request has ended. I did get some strange results with this though - the top and bottom borders dissapeared in some cases after the call was fired.

Re: Ajax

Hi,

That isn't really a problem. Make the script that renders the required elements a (javascript) function. Call this function whenever you need it; for instance upon receiving the asynchronous response from the server after your Ajax call.

Piotr