Page 1 of 1

How to send a parameter to a Conlib

Posted: Mon Sep 07, 2009 1:38 am
by learnerbm
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?

Re: How to send a parameter to a Conlib

Posted: Sat Sep 26, 2009 12:20 am
by mazhar
Make sure that ConLib statement is like and there is no typo in parameter name

Code: Select all

[[ConLib:CategoryProductsDialog CategoryId="3"]]
Then you can access this value in control's Page_Load or any other method.