CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 List Link Menu Control using Checkbox List Control

Print topic Send  topic

Author Message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.