Hopefully that clears that last part up a tid bit
Not really. Based on what would you generate these values?
You can make use of various methods and propertis of the Request class to read those values. For example, for a request like Default.aspx?tree=123, the code:
in the page Default.aspx would give you 123.
Does that help?