Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryEnable multiple selection of download files?Enable multiple selection of download files?
Previous
 
Next
New Post
4/2/2008 3:09 AM
 

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

 

 

 

 

 

 

 

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryEnable multiple selection of download files?Enable multiple selection of download files?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out