Using some of the methods in the pagehelper.cs

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Using some of the methods in the pagehelper.cs

Post by jmestep » Wed Nov 12, 2008 10:27 am

Mazhar,
Could you give us any examples of how to use the methods that are in the PageHelper.cs, like the GetControlValue? I'm looking for something to find something nested in the row of a datalist and have run across some .net FindControl, but it looks like Able has some already. For example, I'm wanting to nest a file upload control in the row for an order item that has a product template field. I've put it in the right place and the upload button shows up, but I need to do something with the file, like save it using ordernumber+templatename and other stuff, and then have that link inserted into the template value field.
Thanks
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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Using some of the methods in the pagehelper.cs

Post by mazhar » Wed Nov 12, 2008 11:28 am

You can use the PageHelper.RecursiveFindControl method. The first parameter will be the parent control and the second will be the controlId of the control you are trying to find. You can check the code example for this in Website\Admin\Orders\OrderHistory.aspx file.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Using some of the methods in the pagehelper.cs

Post by jmestep » Wed Nov 12, 2008 12:42 pm

Thanks, I will look at that.
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

Post Reply