Ajax with SmartPart

Jan 1, 2008 at 11:52 PM
2 questions.

1) I am having trouble with the connected web part example. The DemoConsumer and DemoProvider work exactly like expected until the second time I click the button on the DemoProvider. The button click isn't being registered. Any ideas? It works fine without ajax. When I remove ajax from the page by disabling the scriptmanager, it updates after multiple clicks but obviously shows the page postback.

2) Wasn't the latest version of the smartpart supposed to remove the need for the scriptmanager on a master page. Doesn't it dynamically add it?
Jan 2, 2008 at 12:11 AM
Ok, because I don't think anyone actually responds to these posts, maybe someone can get help be seeing a response to my own post. :)

Here is the problem. I didn't read the Mike Ammerlaan's blog close enough. I needed to add the code about the update panel fix. Initially I was using ajax without smartpart and was added the client script directly to my webpart. But when switching to the smartpart it still needs to be added to the masterpage.

Still not sure about question #2.