Dropdown List Box PostbackURL?
Posted on 2006-04-19
I have a page that has a dropdown listbox that enables users to select which field to sort the display by, using a postback. Problem is that the page goes by many names (i.e. i rewrite the url) so sometimes the page URL is /products/vcr.aspx and sometimes /products/components/speakers.aspx etc. the URL of the actual pages is /products/products.aspx.
When the /products/products.aspx page is displayed a rewritten URL (i.e. /digital-cameras.aspx), the dropdown listbox doesn't postback to /products/products.aspx or /digital-cameras.aspx but to /products.aspx (which doesn't exist) and so returns an error. The ASP button has a PostbackURL property to control where the postback is directed, is there something similar for the dropdown listbox? Any ideas on how to get around this?