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

 Weirdness...session variable comparison (UserID)

Print topic Send  topic

Author Message
Andrew
Posted: 09/20/2004, 6:19 AM

:-/ CCS 2.3.185 with ASP/vbscript/access

In the beforeshowrow event of my grid I am saying

if mygrid.mylabel.value=session("UserID") then
mygrid.mylabel.visible=false
else
mygrid.anotherlabel.visible=false
end if

even if UserID is exactly the same as mylabel the first condition is never triggered. Mylabel in the database and the grid are both defined/formatted as type integer and I have tried comparing it to CInt(Session("UserID")) still nothing....anyone know anything?

THANKS!!

Tuong Do
Posted: 09/21/2004, 4:43 PM

Use this

if cLng(mygrid.mylabel.value)=cLng(session("UserID")) then
mygrid.mylabel.visible=false
else
mygrid.anotherlabel.visible=false
end if



"Andrew" <Andrew@forum.codecharge> wrote in message
news:6414ed8f2400ea@news.codecharge.com...
> :-/ CCS 2.3.185 with ASP/vbscript/access
>
> In the beforeshowrow event of my grid I am saying
>
> if mygrid.mylabel.value=session("UserID") then
> mygrid.mylabel.visible=false
> else
> mygrid.anotherlabel.visible=false
> end if
>
> even if UserID is exactly the same as mylabel the first condition is never
> triggered. Mylabel in the database and the grid are both
> defined/formatted as
> type integer and I have tried comparing it to CInt(Session("UserID"))
> still
> nothing....anyone know anything?
>
> THANKS!!
>
>
> ---------------------------------------
> 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.

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.