RenderMacroContent with .NET user control Options
primoz
Posted: Saturday, March 29, 2008 4:40:05 PM
Rank: Newbie

Joined: 2/26/2007
Posts: 10
Location: Slovenia
I tried RenderMacroContent with .NET User constrols. It works OK when control doesn't include MS AJAX functionalities. So I can't get it to work when there are Control Toolkit controls on user control. Any ideas?
pgnz
Posted: Sunday, March 30, 2008 11:03:28 AM
Rank: Newbie

Joined: 8/6/2006
Posts: 13
Location: Auckland New Zealand
What errors are you getting? Its pretty hard to diagnose problems without the either the code or the error.

I have built many macros (User Controls) that are using MS Ajax in Umbraco without issues.

Hopefully we can help you out...
primoz
Posted: Sunday, March 30, 2008 11:13:03 AM
Rank: Newbie

Joined: 2/26/2007
Posts: 10
Location: Slovenia
pgnz wrote:
What errors are you getting? Its pretty hard to diagnose problems without the either the code or the error.

I have built many macros (User Controls) that are using MS Ajax in Umbraco without issues.

Hopefully we can help you out...


There is no error or any exception.

This is my scenario:
1. I create normal macro from .net user control. Then I load this macro in XSLT macro. I use umbraco.library.RenderMacroContent method. Works OK.
2. Then I add one control from ASP.NET AJAX package. (UpdatePanel or any control from Control Toolkit) Rebuild and copy to umbraco.
3. When I reload umbraco page this control is not rendered and there is no error. Nothing is rendered from this control. Also there is no static text which is on this control.

primoz
Posted: Tuesday, April 01, 2008 9:55:06 AM
Rank: Newbie

Joined: 2/26/2007
Posts: 10
Location: Slovenia
Ok, I debug umbraco code and find out that problem is with. c.RenderControl(hw) in library.RenderMacroContent. If there is ASP.NET AJAX control on this user control then method throws exception. Ajax control want's that Page property of Control is not null.

Currently I don't know how to solve this. Any ideas?
primoz
Posted: Tuesday, April 01, 2008 10:48:24 AM
Rank: Newbie

Joined: 2/26/2007
Posts: 10
Location: Slovenia
Ok, I figured out that this is actually not possible.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.