I’m really new to ASP.Net C# and I’ve got a problem using PostBackURL
I have a shopping cart. The cart contents is database driven. When the user wants to click continue to purchase the items in the cart, I need to pass the cartID to the next page (order.aspx). However, I also need to recalculate the cart contents to ensure no quantities have been altered.
So I really need an onclick function to call the recalcCart function and then use PostBackURL (or equivalent). I can’t seem to find a way to do it.
I don’t want to use querystring or server.transfer (want to a move to the next page)
What if, you make of a class file and create your function in that class file. Aside from that, declare a parameter by reference of your control. And on the control’s click event, invoke the function that you made in order for you to recalculate the content of the cart.