CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Problem trying to use CCGetUserID() function

Print topic Send  topic

Author Message
PaulK

Posts: 15
Posted: 12/09/2005, 5:14 AM

Hi, bit new to using codecharge studio with asp, however im trying to use the CCGetUserID function to get the id of the logged in user which will be used in an query and other forms. However when i try to set a variable for example

tempuserid = CCGetUserID();

i get an error when building the project which states the following:

"index.aspx.cs(384,69): error CS0103: The name 'CCGetUserID' does not exist in the class or namespace 'project3.index.indexPage"

Probly a simple solution or im being dumb :)

Any ideas how to solve this?
View profile  Send private message
Benjamin Krajmalnik
Posted: 12/09/2005, 12:35 PM

I would suggest you post in the .Net forum. You are generating C# on .Net,
not ASP (VBScript).

DonB
Posted: 12/09/2005, 5:03 PM

Simple solution. The security-related functions are not added to your
Common file UNTIL you setup the security information for the project
(project settings dialog box). That's because the function are dependent on
the definition of what table, session variables, etc. are to be used.

--
DonB

http://www.gotodon.com/ccbth


"PaulK" <PaulK@forum.codecharge> wrote in message
news:643998343322df@news.codecharge.com...
> Hi, bit new to using codecharge studio with asp, however im trying to use
the
> CCGetUserID function to get the id of the logged in user which will be
used in
> an query and other forms. However when i try to set a variable for example
>
> tempuserid = CCGetUserID();
>
> i get an error when building the project which states the following:
>
> "index.aspx.cs(384,69): error CS0103: The name 'CCGetUserID' does not
exist in
> the class or namespace 'project3.index.indexPage"
>
> Probly a simple solution or im being dumb :)
>
> Any ideas how to solve this?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

PaulK

Posts: 15
Posted: 12/10/2005, 3:28 AM

Thanks for the replies

In the settings for the project, in security i have the option set to table and the options set to match the login form, eg setting the fields to match the sql columns. I have to set this up as it complains that the details are missing if you create a login form and try to build it. Is there more settings for it somewhere else?
View profile  Send private message
DonB
Posted: 12/10/2005, 7:43 AM

And the 'security groups' - are they set also? If so, then delete your
Common.asp (assuming you've not added any code of your own to it. Then
republish the project (so you get a fresh Common file generated. It should
then create the security functions.

--
DonB

http://www.gotodon.com/ccbth


"PaulK" <PaulK@forum.codecharge> wrote in message
news:6439abbd4bd56d@news.codecharge.com...
> Thanks for the replies
>
> In the settings for the project, in security i have the option set to
table and
> the options set to match the login form, eg setting the fields to match
the sql
> columns. I have to set this up as it complains that the details are
missing if
> you create a login form and try to build it. Is there more settings for it
> somewhere else?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

PaulK

Posts: 15
Posted: 12/10/2005, 10:53 AM

thanks for the help DonB, i cant seem to see a common.asp. I tried just creating a project in ASP 3.0 template and i could see the common.asp however i cannot see it when i create a .ASP.NET C# project. Could it be down to that the functions dont work with C# version or?. As i said im a bit new to ASP so not entirely sure. I would of thought the functions would tho

Any ideas?
View profile  Send private message
peterr


Posts: 5971
Posted: 12/10/2005, 11:38 AM

Paul,

This forum is only about ASP, so you will receive answers related to ASP. They will not work with ASP.NET.
Since you're using .NET you may want to post to our .NET forums.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 12/10/2005, 11:40 AM

BTW, CCGetUserID is an ASP function.
I recommend that you search .NET forums for UserID: http://forums.codecharge.com/search.php?s_keyword=useri...m[]=8&s_period=
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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