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

 Newbie question

Print topic Send  topic

Author Message
Jan K. van Dalen
Posted: 07/21/2005, 1:47 PM

Hi Everyone,

Ok, I have never done vb.net but trying ... :(

1) I'm trying to setup a session variable after a successful login. I added
a Action on the Login Button - On Click after the Login. First is this the
correct event to use?

2) This is the code that is generated which compiles fine:
Dim svDistributorID As Int64 =
Settings.XERDataAccessObject.ExecuteScalar("SELECT GateKeeper.TypeID FROM
GateKeeper WHERE GateKeeper.GateKeeperID="&DBUtility.UserId)

3) Now, when addressing svDistributorID on another page, it tells me that it
has not been declared. I guess I'm confused. Is what I declared a session
variable? and if yes, why does not carry over other pages?

Jan K. van Dalen
Posted: 07/21/2005, 5:16 PM

Ok, I have almost everything working.

I just don't know in which event to add my code after a user has been
successfully verified. Any ideas?


"Jan K. van Dalen" <vandj@markross.com> wrote in message
news:dbp1l8$k0a$1@news.codecharge.com...
> Hi Everyone,
>
> Ok, I have never done vb.net but trying ... :(
>
> 1) I'm trying to setup a session variable after a successful login. I
> added a Action on the Login Button - On Click after the Login. First is
> this the correct event to use?
>
> 2) This is the code that is generated which compiles fine:
> Dim svDistributorID As Int64 =
> Settings.XERDataAccessObject.ExecuteScalar("SELECT GateKeeper.TypeID FROM
> GateKeeper WHERE GateKeeper.GateKeeperID="&DBUtility.UserId)
>
> 3) Now, when addressing svDistributorID on another page, it tells me that
> it has not been declared. I guess I'm confused. Is what I declared a
> session variable? and if yes, why does not carry over other pages?
>

TonyP
Posted: 07/22/2005, 9:34 AM

Under normal situations, you assign a session variable like

Session("ID") = svDistributorID

and retrieve it

Dim svDistributorID As Integer = Session("ID")
Jan K. van Dalen
Posted: 07/22/2005, 11:41 AM

Thanks, I got everything working !!!

"TonyP" <TonyP@forum.codecharge> wrote in message
news:842e1202f8627e@news.codecharge.com...
> Under normal situations, you assign a session variable like
>
> Session("ID") = svDistributorID
>
> and retrieve it
>
> Dim svDistributorID As Integer = Session("ID")
> ---------------------------------------
> 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.

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.