Query strings have nothing to do with ASP.NET pages. You can use different query strings (different connection strings, different databases, etc.) on the same page or same one on different pages. Your problem is purely artificial, in reality it simply does not exist. In this sense, it cannot be "resolved", there is nothing to resolve.
Think of separation of concerns:
http://en.wikipedia.org/wiki/Separation_of_concerns[
^].
—SA