Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Where to write code for querystring value checking?

  1. #1
    kdalal is offline Member
    Join Date
    Aug 2009
    Location
    USA
    Posts
    50

    Default Where to write code for querystring value checking?

    I am trying to get the value for query string that i have added to the product url.
    I have to check that it is redirected from some page like shopping.com or shop.com or buy.com.

    Where can i write the code that my query string has value and it is redirected to my product page from shopping.com or shop.com.

    My url is --

    http://www.mystore.com/p-12020-lg-19...ck.aspx?id=899

    Now i want to check that it is coming from the url and has query string value for id = 899,as we are generating our url on the fly from database which is the place where i can check that the url has id value of 899.

  2. #2
    Dusty is offline Member
    Join Date
    Jun 2009
    Posts
    176

    Default

    If the pages to which you're being directed is always a product page then the optimal palce to which to add said logic would be to the ShowProducts.aspx page. If however you'll be directing to other pages, then you should add this logic to SkinBase.

    Dusty
    ASPDotNetStorefront Staff

  3. #3
    kdalal is offline Member
    Join Date
    Aug 2009
    Location
    USA
    Posts
    50

    Default

    But for a single product the url for that product is --

    http://www.mystore.com/p-12020-lg-19...ck.aspx?id=009

    If i will add the code to showproduct.aspx then how can that one particular product will have the query string with id.

    Because showproduct.aspx have multiple products on it.

    How can get the value for query string that i have added something to track at the end of url.