Click here to Skip to main content
15,912,457 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: global variables Pin
Parwej Ahamad8-Aug-07 0:17
professionalParwej Ahamad8-Aug-07 0:17 
GeneralRe: global variables Pin
Archana New to Dotnet8-Aug-07 0:18
Archana New to Dotnet8-Aug-07 0:18 
GeneralRe: global variables Pin
Parwej Ahamad8-Aug-07 0:20
professionalParwej Ahamad8-Aug-07 0:20 
GeneralRe: global variables Pin
Archana New to Dotnet8-Aug-07 0:23
Archana New to Dotnet8-Aug-07 0:23 
GeneralRe: global variables Pin
Parwej Ahamad8-Aug-07 0:27
professionalParwej Ahamad8-Aug-07 0:27 
AnswerRe: global variables Pin
sulabh20208-Aug-07 0:26
sulabh20208-Aug-07 0:26 
GeneralRe: global variables Pin
Archana New to Dotnet8-Aug-07 0:27
Archana New to Dotnet8-Aug-07 0:27 
GeneralRe: global variables Pin
Colin Angus Mackay8-Aug-07 0:34
Colin Angus Mackay8-Aug-07 0:34 
public static class MyGlobalVariables
{
    public static int someVariable;
}

NOTE: This can be an indication of poor design - You should not be thinking in terms of global variables.

What you need to do is to think of what the purpose of the variable is and find out which class it should belong to. Put it there and have the class control access to it via a property.


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...

"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."


My website

GeneralRe: global variables Pin
Archana New to Dotnet8-Aug-07 0:43
Archana New to Dotnet8-Aug-07 0:43 
GeneralRe: global variables Pin
N a v a n e e t h8-Aug-07 0:44
N a v a n e e t h8-Aug-07 0:44 
GeneralRe: global variables Pin
Pete O'Hanlon8-Aug-07 2:30
mvePete O'Hanlon8-Aug-07 2:30 
GeneralRe: global variables Pin
N a v a n e e t h8-Aug-07 2:37
N a v a n e e t h8-Aug-07 2:37 
GeneralRe: global variables Pin
Colin Angus Mackay8-Aug-07 9:09
Colin Angus Mackay8-Aug-07 9:09 
GeneralRe: global variables Pin
N a v a n e e t h8-Aug-07 18:20
N a v a n e e t h8-Aug-07 18:20 
GeneralRe: global variables Pin
Colin Angus Mackay8-Aug-07 9:01
Colin Angus Mackay8-Aug-07 9:01 
AnswerRe: global variables Pin
Rasal doss Solomon8-Aug-07 0:58
Rasal doss Solomon8-Aug-07 0:58 
QuestionHow to compare username and password fields given by user in login page with database and redirecting him to the next corresponding page Pin
bhattiprolu7-Aug-07 23:57
bhattiprolu7-Aug-07 23:57 
AnswerRe: How to compare username and password fields given by user in login page with database and redirecting him to the next corresponding page Pin
Archana New to Dotnet8-Aug-07 0:32
Archana New to Dotnet8-Aug-07 0:32 
GeneralRe: How to compare username and password fields given by user in login page with database and redirecting him to the next corresponding page Pin
bhattiprolu8-Aug-07 0:37
bhattiprolu8-Aug-07 0:37 
GeneralRe: How to compare username and password fields given by user in login page with database and redirecting him to the next corresponding page Pin
bhattiprolu8-Aug-07 0:43
bhattiprolu8-Aug-07 0:43 
QuestionNeed a watermark imaging source code in asp.net 2.0 csharp Pin
harryforum7-Aug-07 23:43
harryforum7-Aug-07 23:43 
AnswerRe: Need a watermark imaging source code in asp.net 2.0 csharp Pin
sulabh20207-Aug-07 23:51
sulabh20207-Aug-07 23:51 
GeneralRe: Need a watermark imaging source code in asp.net 2.0 csharp Pin
harryforum8-Aug-07 0:17
harryforum8-Aug-07 0:17 
QuestionAdd different banner in header and footer using one admin section [modified] Pin
srakesh7-Aug-07 23:41
srakesh7-Aug-07 23:41 
QuestionAsp.net To Html Pin
A.Muthunagai7-Aug-07 23:40
A.Muthunagai7-Aug-07 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.