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!
Developer forum
E-mail notifications
Generating a dynamic checkboxlist in the _Edit aspx
Jackie Nagel
Posted on 27/02/2012 09:07:17
Replies
Nicolai Høeg Pedersen
Posted on 27/02/2012 20:49:26
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
Posted on 28/02/2012 02:41:03
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
Posted on 29/02/2012 10:05:03
Thanks alot - going for Imar's suggestion! :-)
You must be logged in to post in the forum