How to send a parameter to a Conlib

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
learnerbm
Ensign (ENS)
Ensign (ENS)
Posts: 8
Joined: Wed Sep 02, 2009 8:13 am

How to send a parameter to a Conlib

Post by learnerbm » Mon Sep 07, 2009 1:38 am

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?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How to send a parameter to a Conlib

Post by mazhar » Sat Sep 26, 2009 12:20 am

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.

Post Reply