To give connection string common to all pages then you have to give in webconfig file under
<configuration>
tag
eg:
<connectionStrings>
<add name="MenuStructureDB" connectionString="Data Source=PRASHANTH\SQLEXPRESS;Initial Catalog= MenuStructure;Integrated Security=True;" />
</connectionStrings>
then in code behind you can call
eg:
SqlConnection cn = new SqlConnection(ConfigurationManager.ConnectionStrings["MenuStructureDB"].ToString());