I am trying to use the cb updown control from within a repeater and if I set a default value of 1 for the text value, when I change the value, it changes it on the screen, but that new value is not reflected when the items are added to cart. If I use a plain text box, the quantity gets put in fine. Is there something (easy) I can do to pickup the changed value? I'm finding the control on the add to basket button
short quantity = AlwaysConvert.ToInt16(((UpDownControl)item.FindControl("Quantity")).Text);
Thanks
using the updown control from within a repeater
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
using the updown control from within a repeater
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: using the updown control from within a repeater
If you're using it in a repeater, how are you determining which up-down control to pull the value? I'm presuming since it's in a repeater that more than one up-down control is being rendered on the page....
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: using the updown control from within a repeater
The id will not matter if you look for the control within a single row. In this case you can use the id you specified for control. Check ConLib/Basket control and App_Code/BasketHelper.cs class's SaveBasket method.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: using the updown control from within a repeater
Thanks, I'll look at it.
Joe- I've got other pieces of data in the repeater that I can access using the ItemDataBound event on the repeater using the FindControl, putting some of them into a hidden field after they are changed. Then I pick them up again on the Add to Basket button.
Joe- I've got other pieces of data in the repeater that I can access using the ItemDataBound event on the repeater using the FindControl, putting some of them into a hidden field after they are changed. Then I pick them up again on the Add to Basket button.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: using the updown control from within a repeater
ItemDataBound() is where you can capture it. Or you could switch to a templated gridview control and use the gridview RowCommand method.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: using the updown control from within a repeater
Thanks, Joe. That's where I'm capturing the stuff, but I think something in viewstate is interfering.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx