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 -> .NET

 doing a where "userid = logged in userid" in record

Print topic Send  topic

Author Message
PaulK

Posts: 15
Posted: 01/12/2006, 4:02 AM

Hi,

Im trying to create a grid where it lists all items assigned to a user logged in however In php i would use where userid = CCGetUserID() in the visual query builder, i was wondering what i use in .asp c# instead of this function?

I have tried the following...

System.Web.HttpContext.Current.Session("UserID")
DBUtility.UserID

Thanks for any help
Paul
View profile  Send private message
PaulK

Posts: 15
Posted: 01/12/2006, 5:07 AM

I was also thinking, maybe i could create a function and use it to be called rather than the CCGetUserID(). However im new to .ASP and was wondering if someone could point me in the direction of how i go about creating my own common functions.
View profile  Send private message
Stan
Posted: 01/12/2006, 5:09 AM

DBUtility.UserID is correct syntax for the C#
PaulK

Posts: 15
Posted: 01/12/2006, 5:14 AM

I tried it but i seem to get this error..

Welcome.aspx.cs(380,69): error CS0117: 'project3.Data.DBUtility' does not contain a definition for 'UserID'
View profile  Send private message
Stan
Posted: 01/12/2006, 5:24 AM

Oops, the correct syntax will be

DBUtility.UserId

Note, that last 'd' is small letter.

PaulK

Posts: 15
Posted: 01/12/2006, 5:29 AM

bah lol, always the capitals/spellings that are a bugger to find, its worked now, cheers for the help Stan :)
View profile  Send private message
Walter Kempees
Posted: 01/12/2006, 6:13 AM

We all hate Camels.
"PaulK" <PaulK@forum.codecharge> schreef in bericht
news:843c659c68b682@news.codecharge.com...
> bah lol, always the capitals/spellings that are a bugger to find, its
> worked
> now, cheers for the help Stan :)
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.