"Buy Now" within ProductDetail

Hi All

We have been working with StarterSite to create an e-comm site. While customizing the ProductDetail control, we found it would be useful to have a "Buy Now" button on there somewhere which would be able to add the Product in question to the basket, with a quantity based on a drop down we have showing on the control

However, since the content is all created in RenderContents(), i'm having difficutly attaching an event to a button I add since it's all using an HTML writer as opposed to a solid control on a form or UserControl

Could anyone tell me where the click event would be fired? Should ProductDetail handle that itself or should the containing page be responsible for the basket?

I'm thinking it should go in ProductDetail itself, since the control could be used in multiple pages, but I'm having difficulty finding the correct event

Any ideas please?

cheers

Tim :?)

[978 byte] By [Hoonius] at [2008-1-7]
# 1
Not to worry.

Seems RenderContents() fires too late in the lifecycle so i have moved focus to CreateChildContents()

Hoonius at 2007-10-2 > top of Msdn Tech,Commerce Server,Commerce Server 2007...