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

 Code changes from asp to aspx

Print topic Send  topic

Author Message
Howzit
Posted: 04/23/2004, 1:34 AM

There seems to be quite a few changes to the naming and retrieving variables
from asp to aspx
for instance retrieving the user id
in asp you would use:
CCGetUserID()
in aspx you would use:
DBUtility.UserID

Where is there a list of all these changes?
Why are these changes not noted in the help files?
I need to get the GroupID field and I cant get it to work in aspx & vb.
CCGetGroupID() does not work and I've tried DBUtility.GroupID and this does
not work either.

Why is there no consistancy in CodeCharge?

Tony Do
Posted: 05/02/2004, 5:49 PM

For UserID I would user Session("UserID")
For GroupID I would use Session("GroupID")

It always work in either asp or aspx page.

"Howzit" <hrbotha@absa.co.za> wrote in message
news:c6akdq$6ft$1@news.codecharge.com...
> There seems to be quite a few changes to the naming and retrieving
variables
> from asp to aspx
> for instance retrieving the user id
> in asp you would use:
> CCGetUserID()
> in aspx you would use:
> DBUtility.UserID
>
> Where is there a list of all these changes?
> Why are these changes not noted in the help files?
> I need to get the GroupID field and I cant get it to work in aspx & vb.
> CCGetGroupID() does not work and I've tried DBUtility.GroupID and this
does
> not work either.
>
> Why is there no consistancy in CodeCharge?
>
>

yosra
Posted: 06/20/2004, 5:29 PM

I've tried using session("userid") in aspx , it was recognized by the code charge in the .aspx.cs files but not by the dataprovider.cs although it's vital to use session variables in dataprovider pages
Tuong Do
Posted: 06/21/2004, 10:38 PM

Hi yosra,

Use
System.Web.HttpContext.Current.session("UserID")
In your dataproviders page

"Howzit" <hrbotha@absa.co.za> wrote in message
news:c6akdq$6ft$1@news.codecharge.com...
> There seems to be quite a few changes to the naming and retrieving
variables
> from asp to aspx
> for instance retrieving the user id
> in asp you would use:
> CCGetUserID()
> in aspx you would use:
> DBUtility.UserID
>
> Where is there a list of all these changes?
> Why are these changes not noted in the help files?
> I need to get the GroupID field and I cant get it to work in aspx & vb.
> CCGetGroupID() does not work and I've tried DBUtility.GroupID and this
does
> not work either.
>
> Why is there no consistancy in CodeCharge?
>
>

Gary
Posted: 09/14/2004, 7:53 PM

OK, you preface the session variable with:

System.Web.HttpContext.Current.

But how on earth did you determine this? Is there some reference where you look these up? Better yet, is there a way of adding the basic "using" statements to the DataProvider.cs modules? This is making event writing in those modules PAINFUL!

gary
(maybe I'll change my name to System.Web.HttpContext.Current.Gary)
rogersw

Posts: 16
Posted: 09/17/2004, 3:04 PM


Hi Gary

> But how on earth did you determine this? Is there some reference where you look these up?

I know the feeling. ASP.net is very different from ASP. I don't really blame YesSoft for this one. However, I do agree there could be much better transition documents or a table or chart or something to help people make the crossover.

System.Web is the namespace that has most of the things that act like ASP.

Online docs for .Net framework library. This is one is the System.Web
http://msdn.microsoft.com/library/default.asp?url=/libr...rfSystemWeb.asp

Hope this helps,
Wayne
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.