CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP.NET - InMotion Framework

 Login with 3 fields

Print topic Send  topic

Author Message

Posts: 122
Posted: 12/30/2014, 8:43 AM

Hi, for a new project, I need to know how to create a login screen that uses 3 fields.

The 3 fields are:
- Company ID (which is a code like "AND")
- Username (standard username. There can be multiple users attached to 1 company)
- Password (standard password)

I haven't had any luck with this lately.
Has anyone got this to work?
Or does anyone have any ideas?

I know I can probably get it done using only the regular 2 fields by merging the Company ID and the username, but the CompanyID might be longer than my example and usernames may get long and messy. So I would have liked to avoid that.

- Andrew
View profile  Send private message

Posts: 513
Posted: 12/30/2014, 11:16 PM

Andrew - yeah the built-in code expects a name and password only.

You would need to adjust the query code that does the lookup (I *think* it's in the Security code component)

To find it, add a Security dummy Code Expression like 'FindMe()' and let it generate, then search for it in the CCS Code.

CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message

Posts: 191
Posted: 01/01/2015, 12:32 AM

I once had a project with a similar requirement. So I created a user view where the login was username@companyid. Then I put a hidden textbox on the login form, specified that textbox in the login action, and populated the hidden textbox in a code embed before the login action with the username + '@' + companyid.

View profile  Send private message

Posts: 513
Posted: 01/01/2015, 2:55 PM

Good work - the simplest 'CCS-way' without changing code is cvboucher's method and minimal extra work.

CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message

Posts: 122
Posted: 01/05/2015, 1:03 PM

Hey everyone,

that's actually a great solution!

I eventually figured out a way to do it, and it works well,
but I needed to play around with Code Charge's "Login" code to do so.

It involved doing a lookup in a table for the username and companyID.
Your solution is much simpler, and quicker!

View profile  Send private message

Posts: 1
Posted: 01/08/2015, 9:27 PM

Andy - just wondering - is your app something that was upgraded from CCS 4.x to CCS 5?

I've noticed a couple of minor things with my ASP.NET apps that were migrated (some CCS v3->v4->v5) - not your lower case issue, but some other little regeneration quirks.

I guess it will be an internal thing unless you want to dig through the XML template files that CCS uses to generate a lot of it?

You can check out our latest [url=]comptia a+ exam[/url] and [url=]security+ practice exam[/url] exams written by our [url=]pba[/url] to help you pass [url=][/url] You can also purchase [url=]Florida Southern College[/url] Our [url=]Miami International University of Art & Design[/url] is simply excellent in quality.

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

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

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