Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 7th, 2007, 04:25 PM
Authorized User
 
Join Date: Sep 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Building and passing Environment variables

My .NET web application captures a users domain/network id using the System.Environment Class.

  Dim suser As String = Environment.UserName.ToString
  ViewState("suser") = suser

I can drop that into a ViewState and use it through out my web application. How could I make the "suser" variable I created a Environment Variable (or is it already one because I used the System.Environment class) and can it be passed to a text file?

Thanks




]






Similar Threads
Thread Thread Starter Forum Replies Last Post
Environment variables dotnetprogrammer VS.NET 2002/2003 3 November 30th, 2004 10:10 AM
Environment Variables Error axla BOOK: Beginning ASP.NET 1.0 0 May 23rd, 2004 02:43 AM
configuring environment variables pete_m BOOK: Beginning ASP.NET 1.0 0 April 28th, 2004 04:40 AM
Environment Variables cmiller PHP How-To 1 October 29th, 2003 06:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.