![]() |
| |||||||
| Programming Discussions related to web programming languages and other related issues. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| I am trying to create this app will list users by state then they can filter down by age, race, etc. For example on the homepage i click on a state ( NY ) it lists the following: Age: 18-25 (3 Users ) , 19-29 ( 5 Users ) Race: Asian (2 Users) , African American ( 2 Users ), Caucasian (4 Users ) If a user clicks on Age: 18-25 I want it to be able to pass the state and the age in the query string but how can I accomplish building the links to pass in the state and age or race on the fly? Thanks! That is exactly what I want done. I just need to be able to capture whats already passed in the query string and append it to the filters ( links ) Thank you for helping me out, the main reason I am doing querystrings is really for search engine purposes. If i use post it will not really help me out in my search engine rankings when the crawler comes to my site. Thank you! |
| |||
| 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 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ASP.Net LinkButton or HyperLink, read on...? | Foolster41 | Programming | 4 | 01-23-2007 08:54 PM |