rstewart
Posts: 17
|
Posted: 01/10/2008, 6:09 AM |
|
List Link Menu Control:
Make the Checkbox List Control act as a 'A href' link menu list.
1. Add: TemplateFileName = "Template-" & whatever & ".htm" to 'Page_OnInitializeView'
(hint: always use Template files so codecharge doesn't overwrite your page layout)
2. On the redunent page that codecharge produces: (just a plain (no-style) ordinary form and control elements)
Add a CheckBoxList control.
Point the 'Data Source' to the table that holds your Categories (menu list).
Point the 'Bound Column' & 'Text Column' to the field that holds your menu names to display.
3. Copy the CheckBoxList's Begin and end tages and paste it into your template file.
4. Replace centre text in template file with your 'a href' like this:
<!-- BEGIN CheckBoxList CheckBoxList1 -->
<a href="ccsProducts.asp?Category={CheckBoxList1:currentCategory}&SubCategory={Value}">{Value}</a><br>
<!-- END CheckBoxList CheckBoxList1 -->
Add any CheckBoxList Attributes you need On the original redunent css page:
e.g. {CheckBoxList1:currentCategory}
in the above example my CheckBoxList 'Attributes' columns are:
currentCategory | URL | Category
Note to CCS: wasn't that easier then adding additional forms, directory controls or whatever?
_________________
looking for work in a sunny country. |
|
|
|