Click here to Skip to main content
15,886,026 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sharing same code-behind between multiple aspx pages Pin
tfaol14-Mar-10 23:39
tfaol14-Mar-10 23:39 
QuestionDeclaring variable globally Pin
srikantha_nagaraj26-Sep-09 2:42
srikantha_nagaraj26-Sep-09 2:42 
AnswerRe: Declaring variable globally Pin
Abhijit Jana26-Sep-09 2:58
professionalAbhijit Jana26-Sep-09 2:58 
GeneralRe: Declaring variable globally Pin
srikantha_nagaraj26-Sep-09 22:43
srikantha_nagaraj26-Sep-09 22:43 
GeneralRe: Declaring variable globally Pin
Abhijit Jana26-Sep-09 22:50
professionalAbhijit Jana26-Sep-09 22:50 
GeneralRe: Declaring variable globally Pin
srikantha_nagaraj26-Sep-09 23:05
srikantha_nagaraj26-Sep-09 23:05 
GeneralRe: Declaring variable globally Pin
Abhijit Jana26-Sep-09 23:16
professionalAbhijit Jana26-Sep-09 23:16 
AnswerRe: Declaring variable globally Pin
Abhishek Sur26-Sep-09 6:13
professionalAbhishek Sur26-Sep-09 6:13 
Are you talking about variables that every session can access ?

If so then why not you use Application object.

From your code :
Applicatiion["yourvariablename"] = value;

Now this value will be available globally to every session. Call this value using :

object val = Application["yourvariablename"];

Rose | [Rose] Rose | [Rose]

Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

GeneralRe: Declaring variable globally Pin
Not Active26-Sep-09 13:24
mentorNot Active26-Sep-09 13:24 
GeneralRe: Declaring variable globally Pin
Abhishek Sur27-Sep-09 8:32
professionalAbhishek Sur27-Sep-09 8:32 
GeneralRe: Declaring variable globally Pin
srikantha_nagaraj26-Sep-09 22:50
srikantha_nagaraj26-Sep-09 22:50 
GeneralRe: Declaring variable globally Pin
Abhijit Jana26-Sep-09 23:07
professionalAbhijit Jana26-Sep-09 23:07 
GeneralRe: Declaring variable globally Pin
Abhishek Sur28-Sep-09 6:46
professionalAbhishek Sur28-Sep-09 6:46 
Questionpage not opening Pin
ais0725-Sep-09 23:37
ais0725-Sep-09 23:37 
AnswerRe: page not opening Pin
Christian Graus25-Sep-09 23:53
protectorChristian Graus25-Sep-09 23:53 
GeneralRe: page not opening Pin
ais0726-Sep-09 0:07
ais0726-Sep-09 0:07 
GeneralRe: page not opening Pin
Christian Graus26-Sep-09 0:12
protectorChristian Graus26-Sep-09 0:12 
QuestionDiv creating issues in browser wise Pin
llibin25-Sep-09 22:46
llibin25-Sep-09 22:46 
Questionimplement Captcha in asp.net Pin
vid nandha25-Sep-09 22:24
vid nandha25-Sep-09 22:24 
AnswerRe: implement Captcha in asp.net Pin
Christian Graus25-Sep-09 22:29
protectorChristian Graus25-Sep-09 22:29 
GeneralRe: implement Captcha in asp.net Pin
vid nandha25-Sep-09 22:56
vid nandha25-Sep-09 22:56 
GeneralRe: implement Captcha in asp.net Pin
Christian Graus25-Sep-09 23:23
protectorChristian Graus25-Sep-09 23:23 
AnswerRe: implement Captcha in asp.net Pin
Richard MacCutchan25-Sep-09 23:32
mveRichard MacCutchan25-Sep-09 23:32 
AnswerRe: implement Captcha in asp.net Pin
Abhijit Jana26-Sep-09 4:00
professionalAbhijit Jana26-Sep-09 4:00 
QuestionDisable all content when opening div Pin
pujafaldu25-Sep-09 22:20
pujafaldu25-Sep-09 22:20 

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.