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

 Session Variable .

Print topic Send  topic

Author Message
mr_medhat

Posts: 16
Posted: 07/14/2006, 7:10 AM

This link show how to have a session variable with ASP or PHP ,,,

http://docs.codecharge.com/studio3/html/ProgrammingTech...iables.html?toc


How can I keep a session variable after logging in using VB.NET ?


Thanks ,,
View profile  Send private message
Diesel

Posts: 43
Posted: 07/17/2006, 8:30 AM

Hi

This is the equivalent to setting a Session Variable in .NET

System.Web.HttpContext.Current.Session("User_Name")=CType((New TextField("",Settings.Connection1DataAccessObject.ExecuteScalar("SELECT " & "User_Name" & " FROM " & "Users" & " WHERE " & "User_ID=" & Item.User_Id.Value))).Value, String)

Hope it helps
Regards
View profile  Send private message
mr_medhat

Posts: 16
Posted: 08/24/2006, 11:41 AM

Hi Diesel ,

No , This code doesn't fully work ,
If I replace the Part of "Item.User_Id.Value" with a specific ID value , the code works fine , but if it remains as is , I get the error :

'User_Id' is not a member of 'School_1.Logon.LoginItem'

Any Ideas !!

Thanks in advance
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.

MS Access to Web

Convert MS Access to Web.
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.