CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Redirect if no profile found.

Print topic Send  topic

Author Message
Joe
Posted: 05/11/2005, 8:06 AM

I need a way of redirecting a user to a profile page if they have not filled one out yet. I am not sure weather I include this in the login script or weather it is on the homepage.

I am thinking of having a hidden field on the profile page with the value 1 in it. So I think I need some along the lines of if profile = 1 redirect to homepage.asp if not redirect to profile.asp. Thanks for any help in advance.
dhodgdon

Posts: 80
Posted: 05/13/2005, 10:29 AM

I do something like this to check if a user has registered for a conference. I have a Yes/No column in the Users table of the database that defaults to "No" when the user creates a login. When they register, (or in your case create a profile), I put a "Yes" in that column via a hidden control in the registration form. I then can test at any time using a CCDLookUp conditioned by CCGetUserID(). This allows me to dynamically assign hyperlinks, redirect, etc.

I also have used CCS security levels and change the security level of a user based on information they fill out. That allows me to use page security settings that redirect, or hide forms, hyperlinks, etc. based on security levels. You can also test the user security level in an event and make decisions from there.
_________________
Regards,
David Hodgdon
View profile  Send private message
Oper


Posts: 1195
Posted: 05/15/2005, 12:02 AM

Using Security Level and changed to a higher level will allow you to use internal security and the already done redirect funcions. (Work like a chamr for waht you are trying to do.





http://www.GlobalDevelop.com
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
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.

Web Database

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.