Is there any way of declaring a variable in an include file or ascx and then reading the value of that variable from an aspx page. I always get variable not declared.<BR><BR>In asp I used to create an include file that will just check if the querystring value is empty and then assigning a default value. I tried using global.asax but the same problem occurs. I cannot read the value of a variable outside the global.asax or outside the user control.<BR><BR>I just don&#039;t want to replicate this code in all the aspx Page_Load event.<BR><BR>Is there any smart solution for this or am I missing something.<BR><BR>Your help will be much appreciated.<BR><BR>Thx