CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 2/18/2005 11:17:39 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
char22
Asp.Net User
Global variables?2/18/2005 11:17:39 AM

0/0

Hi all,

I have a menu in my home page with two items with the same NavigateUrl that is actually a login page.

In the login page, when the login is succesfully done, I would like to go to different pages, following the menu item selected in the home page.

For this, what I do is to use a global variable that is set to TRUE or FALSE following the selected menu item (in the "Menu1_MenuItemClick" event). Then, in the "Login1_LoggedIn" event I test the value of the global variable in order to redirect to the appropriate page.

I define the global variable in a class as follows:

Imports Microsoft.VisualBasic
Imports System

Public Class GlobVar

Private Shared Where As Boolean

Public Shared Property WhereToGo() As Boolean
Get
Return Where
End Get
Set(ByVal Value As Boolean)
Where = Value
End Set
End Property

End Class

and I set the variable as: GlobVar.WhereToGo = False, for example.

However, when I test the value of "GlobVar.WhereToGo", it is always TRUE.

Can somebody tell me where is the problem with that, please?

Thanks in advance,

Daniel
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
JavaScript: The Definitive Guide Authors: David Flanagan, Pages: 994, Published: 2006
Learning Python Authors: Mark Lutz, Pages: 700, Published: 2007
Practical C++ Programming Authors: Steve Oualline, Pages: 550, Published: 2002
Apache: The Definitive Guide Authors: Ben Laurie, Peter Laurie, Pages: 568, Published: 2003
Programming Perl: There's More Than One Way To Do It Authors: Larry Wall, Tom Christiansen, Jon Orwant, Pages: 1067, Published: 2000
Programming PHP Authors: Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre, Pages: 521, Published: 2006
C++ Primer Plus Authors: Stephen Prata, Pages: 1128, Published: 2001
C++ how to Program: How to Program Authors: Paul J. Deitel, Pages: 1429, Published: 2008
Python in a Nutshell: A Desktop Quick Reference Authors: Alex Martelli, Pages: 695, Published: 2006
The Book of JavaScript: A Practical Guide to Interactive Web Pages Authors: Thau, Pages: 490, Published: 2007

Web:
Global variable - Wikipedia, the free encyclopedia In computer programming, a global variable is a variable that is accessible in every scope. Interaction mechanisms with global variables are called global ...
Global and Local variables declaration. In the next example i is a global variable, it can be seen and modified by main and any other functions that may reference it. ...
Global Variables Modern programming practice recommends against the excessive use of global variables. They can lead to poor program structure, and tend to clog up the ...
PHP: Variable scope - Manual In PHP global variables must be declared global inside a function if they are going ... A second way to access variables from the global scope is to use the ...
audio.out Posted by: stx in mp3. A catch up post to fill some requests I’ve had over the past few weeks:. I previously promised to come back to Finiflex, ...
[Nemiver-list] global variable listing support -- December 26 ... Dec 26, 2007 ... Hello, A couple of months ago, A Gordon submitted a patchset [1] to make nemiver show the global variables of the program beeing debugged. ...
Global variables A global variable has a name beginning with $ . It can be referred to from anywhere in a program. Before initialization, a global variable has the special ...
Global Variables and the WordPress Loop | Weblog Tools Collection My name is Ronald Huereca and am a new author here at WLTC. I come from a technical and business background with a degree in EET and a MS in Business.
Hardened-PHP Project - PhP Security - Advisory 19/2005 Oct 31, 2005 ... applications that exist due to uninitialised global variables. Details: When parse_str() is called with only one parameter it parses the ...
greenethumb: Global Variables in AS3 Actionscript, Flash, Beer and the Deeetroit Tigers are a few of my favorite things.

Videos:
Global Variables How to use Global Variables in Visual Basic 6.0
Intro to programming with python and Tkinter lecture10 Lecture 10: Photo display Part A(15min) [WWW] http://ourmedia.org/node/9765 Learn how to create a photo display. The concentration of this lecture is...
Global and Local Variables in JavaScript Global and Local Variables in JavaScript http://thecodemaster.com/javascript/global-and-local-variables-in-javascript/
048-FORMS Hands-On #12 (Oracle Training) In this hands-on, you will learn how to: use and assign global variable, pass global variable from one Form to another, use global variable to execu...
GCCFRONT #52 GCC FRONT END http://www.ibiblio.org/pub/Linux/docs/HOWTO/GCC-Frontend-HOWTO GCC Frontend HOWTO set_block(tree block) Sets the block for the current scope....
Intro to Programming with Python and Tkiner lectuer11 Lecture 11: Photo display Part B(9min) [WWW] http://ourmedia.org/node/10943 Actually creating the image viewer. We are going to create what I promise...
Learning PHP - Lesson 1 Learning PHP - Lesson 1: Types, Variables and Constants (2006) Here we'll show you all the different types, such as strings, ints, booleans and array...
GCCS97 #65 Proceedings of the GCC Developers Summit 2007 From http://ols.108.redhat.com/2007/GCC-Reprints/GCC2007-Proceedings.pdf . Itanium, starting at -O2. 4.3 Testing on S.P.E.C CPU2000 We ...
Intromit basic demo Basic demo of python backend of intromit. Session is taken inside emacs. For more information about intromit, visit: http://code.google.com/p/intro...
Clove Central Flyer Rebuild Download the original here - http://www.angelfire.com/nb/offarex/ All credit to the original goes to andrewburbidge! I wanted to rebuild this. I r...




Search This Site:










usercontrols and properties

rsa encryption - string to byte[] to string to byte[] to string

httpwebrequest redirecting to login page when performing screenscrapehtml

did a upgrade 2.12 to 3.0.10

sharepoint web part import and usage?

using asp.net sitemap with dynamic web template - refresh problem

version controlj and collaboration recommendations

breakpoint not getting hit

attach to methods in a master page

why do i recieve a error message "an establisted connection was aborted by the software in your host machine" when i try to recover the password?

unknown error message

cannot access cdo.message revisited 3.0.8

themes and third-party controls

has anyone installed ais ec 2.0?

entlib 2.0, oracle and per user credentials

add to the web.sitemap programmatically

creating a "subverb" for web part?

pls help me convert asp code-->asp.net

error cs 0433 found class in multiple dll's

v3.04 parse skin options

why do i have an aspnetdb.mdb when i am using a remote sql server for membership?

parent/child portal users (need to be the same)

localizing an application in the master page

web deployment project always builds

passing parameters when using autocompleteextender

login module does not disappear

user roles

creating a calendar based on club site starter kit

future release dates [?]

ctrl-n (open in new window)

 
All Times Are GMT