Master Page and Connection Strings

batutabunsing

Member
Joined
Mar 3, 2008
Messages
19
Programming Experience
Beginner
Master Page and Connection Strings

Hi Everyone.

Just want to get your advice on the following scenario.

I have a master page and in the code behind file, I have a script to retrieve the connection string from a web service.

How would I reference the connection string which I am retrieving from a Master Page to a User Class (for example, MyClass.vb)?

I declared a Public string variable in my master page but I do not know how to reference it from the class.

And by the way, I want to know which gets executed first? The code behind of the master page or the code behind of the content page? Is the code behind of the master page executed for different content pages everytime it is loaded?

Thanks a lot.
 
Back
Top