Register a control in text/xml transformation

Eagle Y asked on December 31, 2015 11:26

Hi,

A situation has come up where I need to register a control in a text/xml transformation.

Any idea how this can be done?

Recent Answers


Roman Hutnyk answered on December 31, 2015 15:36

You can't register server control in text/xml (non-server) transformation.

1 votesVote for this answer Mark as a Correct answer

Eagle Y answered on January 1, 2016 12:27

any workaround you can think of?

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on January 4, 2016 01:25

Use ASPX transformation. It is difficult to give any recommendation while I'm out of context.

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on January 4, 2016 08:04

Hello,

well, you can write a custom macro method that does whatever you need in the code, so you can return any output your control would return.

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on January 4, 2016 17:23

Can you tell us what exactly you are trying to accomplish? What kind of control do you want to load in? Using an ascx transformation usually is straight forward, and allows you to register the control using the asp.net control declarations. If you switch to the ascx transformation, all you need to do is to make sure all of your macros from before would be changed to the appropriate ascx code.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.