Hi all, I want to send a value to a conlib and I want to edit this value in the html where the conlib is used.
One of my friend suggested to me to use <p>[[ConLib:CategoryProductsDialog CategoryId="3"]]</p> but it did not worked.
In my conlib CategoryId is defined like this;
private int _CategoryId = 0;
[Personalizable(), WebBrowsable()]
public int CategoryId
{
get { return _CategoryId; }
set { _CategoryId = value; }
}
how can I set CategoryId value to 3 like in the example?
How to send a parameter to a Conlib
Re: How to send a parameter to a Conlib
Make sure that ConLib statement is like and there is no typo in parameter name
Then you can access this value in control's Page_Load or any other method.
Code: Select all
[[ConLib:CategoryProductsDialog CategoryId="3"]]