J
jm
For example, I cannot get this to work (in my page_load on the
server):
chkCompleted.attributes.add("onclick", "javascript:return confirm('Are
you sure?');")
My code is:
<asp:datagrid....>
<columns>
some boundcolumns
<asp:Template ColumnHeaderText="Completed"
ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:checkbox id="chkCompleted" Runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
</columns>
</asp:datagrid>
I get an error that chkCompleted is not declared. My guess is that I
have not imported the correct namespace. I have tried several, just
guessing but I haven't found the right one.
Where is a good reference for this? Thank you and links are
appreciated.
server):
chkCompleted.attributes.add("onclick", "javascript:return confirm('Are
you sure?');")
My code is:
<asp:datagrid....>
<columns>
some boundcolumns
<asp:Template ColumnHeaderText="Completed"
ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:checkbox id="chkCompleted" Runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
</columns>
</asp:datagrid>
I get an error that chkCompleted is not declared. My guess is that I
have not imported the correct namespace. I have tried several, just
guessing but I haven't found the right one.
Where is a good reference for this? Thank you and links are
appreciated.