| I'm a bit confused by your question. Please clarify:
1. Do you have user information saved some place?
2. Are you trying to get this information for users currently in the application, or for registered users?
3. Why do you want to pass this information into a query string? Is there a reason you want to pass this information off to another page?
I think this is what you really want:
1. User comes to page and selects his state.
2. Page displays age groups.
3. User selects age group.
4. Page displays race groups.
5. User selects race group.
6. Page displays all users who match state, age and race groups.
If I have that wrong, please redefine what you want done, in the same manner as above: Step 1, user comes to page; Step 2, page shows user something; Step 3, user does something;; Step 4, page displays something else; etc.
UPDATE:
I still don't understand why you want to do this with query strings. But to answer your question directly, all you need to do is rebuild some links based on user input.
You'd do that with a link control, not a linkbutton control, and change the link's URL value programmatically, then have the page post back to itself.
But again, you're making it a lot harder than it needs to be. I'll demonstrate an easier way to do what you want on my demo site and post a link when it's ready.
UPDATE:
I have this solution ready for viewing:
http://blog.360.yahoo.com/blog-NVb99sQ4RK5BVgIbxdcQdcRtfT8-?cq=1&p=41 |