I have a datagrid displaying detail records and want to be embed a checkbox that will allow users to select which detail they want to print. I have this working in a non-dnn aspx page fine but when I move it into my module the postback && hookup OnCheckedChange event I am getting a 'dotnetnuke Min Max persistence type of cookie requires a Module Id' error and have no idea what to do with it - it seems to be related to this call but am at a loss.
I know I could probably roll through the whole collection on some final post rather than postback on each selection but that is not my main concern (though if you have an idea I am interested). Note: dgItem.Cells[0].Text is my table key.
Thanks in advance.
Here is the column from the aspx page and the method that is called.
<asp:TemplateColumn HeaderText="Print Select" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:CheckBox ID="cbPrint" Runat="server" Enabled="true" OnCheckedChanged="Check_Clicked" AutoPostBack="true"/>
</ItemTemplate>
</asp:TemplateColumn>
public void Check_Clicked(Object sender, EventArgs e)
{
CheckBox ck1 = (CheckBox) sender;
DataGridItem dgItem = (DataGridItem)ck1.NamingContainer;
if (ck1.Checked)
{
//set print flag on
updatePrintStatus(dgItem.Cells[0].Text, true);
}
else
{
//set print flag off
updatePrintStatus(dgItem.Cells[0].Text, false);
}
}