ASP.NET: How do I navigate to a page after clicking a checkbox?

velmanewyork

New Member
I have some \[code\]checkboxes\[/code\] and a \[code\]dropdownlist\[/code\] when the value changes I want to refresh the page while passing the new value. I tried using \[code\]autopostback\[/code\]; however, the value is already in the url previously so when the postback occurs the value never changes.Example:\[code\]CurrentPage: page.aspx?tab=Home&checkbox=True\[/code\]Then I uncheck the checkbox so I want it to go to the following page...\[code\]IntendedPage: page.aspx?tab=Home&checkbox=False\[/code\]But instead I the autopostback gives me this page...\[code\]DestinationPage: page.aspx?tab=Home&checkbox=True\[/code\]Because, I handle the building of the url through a function on my page. Perhaps I'm doing something wrong by this point. If so I'd be happy to be corrected on my current setup. What I think I need to know though is how to load a custom URL on the checkbox.checkchanged event. I hope this made sense, if not let me know I'll try and clarify it. Thanks!
 
Back
Top