S
Steve Steve
Hello
I've got a bit of a problem here!
Right, I manage my shopping basket on my shop website by just storing
the ids and quantities of the products the customer has added in the
Session - the textbox name that I use in product view to add a quantity
is a "P" and the itemid to pass to the next page - because there are
variants of the same product I have to create these rows in code but
when they submit they append "_ctl5:_ctl0:" to the beginning in the URL.
This isn't really a problem in itself as long as this remains the same
so when I come to request I can check for:
Request.QueryString["_ctl5:_ctl04321"] for example to get at the
quantity value. 'P' followed by the id of '4321' so in the url I might
have expected &p4321=100 if a customer selected 100 quantity.
Right that explained - here is my problem - for the second time now this
"_ctl5:_ctl0:" has changed - this time to "_ctl4:_ctl0:" spontaneously
and it isn't the first time it's happened! That means that from a fully
functional basket all of a sudden I get server errors because the id
passed from textbox has changed.
My Question then is can this appendation be altered or bypassed
altogether so that this problem goes away?
Thanks
Steve
I've got a bit of a problem here!
Right, I manage my shopping basket on my shop website by just storing
the ids and quantities of the products the customer has added in the
Session - the textbox name that I use in product view to add a quantity
is a "P" and the itemid to pass to the next page - because there are
variants of the same product I have to create these rows in code but
when they submit they append "_ctl5:_ctl0:" to the beginning in the URL.
This isn't really a problem in itself as long as this remains the same
so when I come to request I can check for:
Request.QueryString["_ctl5:_ctl04321"] for example to get at the
quantity value. 'P' followed by the id of '4321' so in the url I might
have expected &p4321=100 if a customer selected 100 quantity.
Right that explained - here is my problem - for the second time now this
"_ctl5:_ctl0:" has changed - this time to "_ctl4:_ctl0:" spontaneously
and it isn't the first time it's happened! That means that from a fully
functional basket all of a sudden I get server errors because the id
passed from textbox has changed.
My Question then is can this appendation be altered or bypassed
altogether so that this problem goes away?
Thanks
Steve