Developer forum

Forum » Development » Generating a dynamic checkboxlist in the _Edit aspx

Generating a dynamic checkboxlist in the _Edit aspx

Jackie Nagel
Reply
Hello! :-)

I've been trying to generate a dynamic checkboxlist for the _Edit aspx for a contentmodule. I've yet to find out the specific error, but I'm getting all sorts of JavaScript errors when trying to insert this list into the aspx file.

The specific error I'm encountering is related to the inherited JavaScript functions used to submit the form on the page - it seems like a prototype error, but haven't been able to fix it.

What would your take on this be - alas, how would you make a checkboxlist generated from codebehind and their data saved in the dynamicweb properties object? :-)

Thanks a bunch in advance! 

Replies

 
Nicolai Høeg Pedersen
Reply
You can probably not use the asp.net checkbox list. But you can use the checkbox with runat=server or <Dw:checkbox> control:

<dw:CheckBox ID="updateContentLinks" runat="server" Value="1" FieldName="updateContentLinks" SelectedFieldValue="1" />


 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
This post has been marked as an answer

If you're using an ASCX User Control for the _Edit page instead of an ASPX page, the CheckBoxList would still work. You probably just need to manage the state saving yourself (e.g. client side get the selected values and store them, as a comma separate list for example) in a form field that is tracked by Dynamicweb.

Cheers,

Imar

Votes for this answer: 0
 
Jackie Nagel
Reply
 Thanks alot - going for Imar's suggestion! :-)

 

You must be logged in to post in the forum