Click here to Skip to main content
15,892,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Funny characters when exporting data to excel Pin
Abhijit Jana13-Oct-09 18:23
professionalAbhijit Jana13-Oct-09 18:23 
Questionclient side Validators did not work Pin
Maher Elsayed13-Oct-09 6:12
Maher Elsayed13-Oct-09 6:12 
AnswerRe: client side Validators did not work Pin
sashidhar13-Oct-09 18:26
sashidhar13-Oct-09 18:26 
QuestionDotNetNuke Pin
nithydurai13-Oct-09 2:19
nithydurai13-Oct-09 2:19 
AnswerRe: DotNetNuke Pin
N a v a n e e t h13-Oct-09 2:21
N a v a n e e t h13-Oct-09 2:21 
AnswerRe: DotNetNuke Pin
sashidhar13-Oct-09 2:23
sashidhar13-Oct-09 2:23 
AnswerRe: DotNetNuke Pin
Abhijit Jana13-Oct-09 2:38
professionalAbhijit Jana13-Oct-09 2:38 
QuestionScope of Shared Variables Pin
Jay Royall13-Oct-09 2:09
Jay Royall13-Oct-09 2:09 
Hi, just a little clarrification required please!

I am in the process of developing several ASP.NET User Controls and a class library to plug into a third party CMS. What I have done with regards to the connection string and the fact that my class library cannot see the web.config file (and this may not be the best approach in which case I'm all ears!) is to have a shared class variable, called ConnectionString, which has a value assigned to it by my User Controls on each load of the User Control.

But what I have found is that if I set the ConnectionString variable once, it seems to be available even after post back without having to set it again. What's more, even if I close the browser and load the page again, the shared connection string variable still seems to be there.

Could someone please shed a little light on the scope of shared variables in this context and whether it's a good or bad idea to use them.

Thanks Smile | :)
AnswerRe: Scope of Shared Variables Pin
N a v a n e e t h13-Oct-09 2:20
N a v a n e e t h13-Oct-09 2:20 
GeneralRe: Scope of Shared Variables Pin
Jay Royall13-Oct-09 2:47
Jay Royall13-Oct-09 2:47 
AnswerRe: Scope of Shared Variables Pin
Christian Graus13-Oct-09 12:21
protectorChristian Graus13-Oct-09 12:21 
GeneralRe: Scope of Shared Variables Pin
Jay Royall13-Oct-09 22:20
Jay Royall13-Oct-09 22:20 
QuestionHow to display Yahoo news in my web site Pin
Jagz W13-Oct-09 2:01
professionalJagz W13-Oct-09 2:01 
AnswerRe: How to display Yahoo news in my web site Pin
Manas Bhardwaj13-Oct-09 2:11
professionalManas Bhardwaj13-Oct-09 2:11 
AnswerRe: How to display Yahoo news in my web site Pin
Abhijit Jana13-Oct-09 2:12
professionalAbhijit Jana13-Oct-09 2:12 
AnswerRe: How to display Yahoo news in my web site Pin
April Fans14-Oct-09 15:08
April Fans14-Oct-09 15:08 
QuestionGraph Pin
helelark12313-Oct-09 0:46
helelark12313-Oct-09 0:46 
AnswerRe: Graph Pin
Manas Bhardwaj13-Oct-09 1:24
professionalManas Bhardwaj13-Oct-09 1:24 
GeneralRe: Graph [modified] Pin
helelark12313-Oct-09 2:01
helelark12313-Oct-09 2:01 
AnswerRe: Graph [modified] Pin
sashidhar13-Oct-09 1:39
sashidhar13-Oct-09 1:39 
GeneralRe: Graph Pin
Manas Bhardwaj13-Oct-09 1:45
professionalManas Bhardwaj13-Oct-09 1:45 
GeneralRe: Graph Pin
sashidhar13-Oct-09 2:18
sashidhar13-Oct-09 2:18 
GeneralRe: Graph Pin
helelark12313-Oct-09 2:51
helelark12313-Oct-09 2:51 
GeneralRe: Graph Pin
Abhijit Jana13-Oct-09 4:24
professionalAbhijit Jana13-Oct-09 4:24 
GeneralRe: Graph Pin
sashidhar13-Oct-09 4:27
sashidhar13-Oct-09 4:27 

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.