Hi,
I have a web page that sells various products. This product page is static but it displays different information depending on the querystring that is appended to the products.aspx page. When products are no longer for sale we flag them as discontinued
in a products sql database table.
When products are discontinued end users can still browse to the product page for that product, but they cannot purchase the product.
I've been given a new requirement that if a product is discontinued and a user browses to that product page then the end user should be redirected to another page. I written code to read the query string (which contains the ID of the product) and to check
that ID in the database to see if it is a valid product.
My question is: on which page life cycle event is best for code be placed, OnInit ?
Thanks
Go to the complete details ...