Hello repositorers.
My question is the following:Is there any way to add a checkbox in every file listing row (i clear off the download link from the template.html) and also in the footer a button to add the selected items to a shopping cart.So the users gets in, sees a filelist of some items,checks those we wants and clicks to add them to his shopping cart.My tries so far include the adding of the checkbox in the template.html
<TABLE CLASS="normal" WIDTH="100%" CELLSPACING="0" CELLPADDING="0" STYLE="padding-top: 4px;">
<TD WIDTH="1" ALIGN="left" VALIGN="top">[EDIT]</TD>
<TD WIDTH="16" ALIGN="left" VALIGN="top" style="padding-right:2px;">[FILEICON]</TD>
<td WIDTH="16" ALIGN="left" VALIGN="top"><input type="checkbox" id="ck1" /></td>
<TD CLASS="normal" ALIGN="center" VALIGN="top">[TITLE]</TD>
and then try to access the checkbox from the Repository.ascx where i added a button and the associated click event handler.
I managed to read the information that is shown in the filelist (filename,date,size) with code like that
CType
(lstObjects.Items(0).Controls(0).Controls(3).Controls(5), Label).Text where lstObjects is the datagrid that Repository uses to show its items
So now i try to find a way to catch the checked checkboxes so as to pass the associated data as arguments to another function of my namespace to add them to the user's shopping cart.
I hope i made my problem clear. Is there a suggestion to do this thing with another way or module??
Some ideas i have is if a can use javascript in the template.html to pass the checked rows somewhere?Generally how i can access a html element that I add in the template.html from the .ascx control?I tried FindControl() method but nothing.
Thank you