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 -> ASP

 How to include Header file dynamically

Print topic Send  topic

Author Message
abakht

Posts: 2
Posted: 03/24/2006, 10:01 AM

Greetings,

I am trying to include a header file based on the user group. For example:

I have 3 header file called AHeader, BHeader and CHeader,

I want include AHeader when groupid is 1, BHeader when GroupId is 2 and CHeader when groupid is 3.

Would some one show me where and how to accomplish this?

Thank you.

Alex
_________________
abakht
View profile  Send private message
zolw


Posts: 51
Posted: 03/24/2006, 12:19 PM

Alex,

As long as I know it is not possible to add an include dynamically.
What you can do if you are using CCS 3 is....

......in the same Include (lets call it Header) you add 3 panels and set the visible property as NOT visible and then using code and depending on the user level you show the panel with the content for the proper group.

If I can help you with this just PM me.
_________________
Zolw
http://www.xlso.com
View profile  Send private message
mhope

Posts: 37
Posted: 03/24/2006, 2:09 PM

Or just set the include files with the groupID assigned to them via CCS
View profile  Send private message
abakht

Posts: 2
Posted: 03/25/2006, 10:49 AM

Thank you so much for the help. It works perfectly.

Alex,
_________________
abakht
View profile  Send private message
wayner


Posts: 37
Posted: 04/24/2006, 10:52 AM

I would be interested in getting a copy of both techniques and code, I am looking at a way to include differents headers and storing the header graphics to the CCS Horizontal Menu System tables.
_________________
Have it your way, sort of!
1. You can have it fast.
2. You can have it cheap.
3. You can have it accurate.
Pick 2 out of the 3!
View profile  Send private message
Waspman

Posts: 948
Posted: 04/27/2006, 2:19 AM

I do this all the time.

I just create a table called headers (images, welcome statements,links etc.) assign the group ID and show it using where etc.

All managed by the client via their admin area.;-)






_________________
http://www.waspmedia.co.uk
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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