How to pass two parameters to inline control

Customer care manager

Juraj Ondrus asked on October 8, 2009 04:35

How to pass two parameters to inline control

Correct Answer

Juraj Ondrus answered on October 8, 2009 04:35

Standard in-line control takes only one parameter. If you want to pass two parameters to any in-line control you can use following workaround. Your one parameter can consist of two parameters separated for example by underscore.

Example of BizForm in-line control with passing two parameters in one:

%% control:BizFormControl?BizFormName_AlternativeFormName %%

In code behind of your inline control you can simply parse this parameter into two strings and set your control properties according your needs.

You can also find alternative approach at http://devnet.kentico.com/Knowledge-Base/API-and-Internals/How-to-pass-two-parameters-to-inline-control.aspx

0 votesVote for this answer Unmark Correct answer

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