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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0OnDeleteCommand event doesnOnDeleteCommand event doesn't fire in the DataGrid
Previous
 
Next
New Post
4/20/2008 7:27 AM
 

I have the following DataGrid in a Edit Page:

<asp:DataGrid ID="dgStoredKeys" runat=server DataKeyField="GoogleMapKeyID" BorderWidth="0"
CellPadding="4" AutoGenerateColumns="False" width="100%" cssclass="DataGrid_Container"
OnDeleteCommand="dgStoredKeys_DeleteCommand">
<HeaderStyle CssClass="NormalBold" VerticalAlign=top HorizontalAlign=Center/>
<ItemStyle CssClass="Normal" HorizontalAlign=Left />
<AlternatingItemStyle CssClass=Normal />
<EditItemStyle CssClass="NormalTextBox" />
<SelectedItemStyle CssClass="NormalRed" />
<FooterStyle CssClass="DataGrid_Footer" />
<PagerStyle CssClass="DataGrid_Pager" />           
<Columns>
    <dnn:imagecommandcolumn CommandName="Delete" ImageUrl="~/images/delete.gif" KeyField="GoogleMapKeyID" />
    <dnn:textcolumn DataField="Url" HeaderText="Url" />
    <dnn:textcolumn DataField="GoogleMapKey" HeaderText="API Key" />
</Columns>       
</asp:DataGrid>

If I put control in a page that inherits from ModuleSettingsBase it fires, but when I copy the code to another page that inherits from PortalModuleBase it doesn't fire. How can I fix it?

Thanks.

 

 

 

 
New Post
4/20/2008 12:26 PM
 

                <Columns>
                      <asp:ButtonColumn Text="X" CommandName="Delete"></asp:ButtonColumn>
                      <dnn:imagecommandcolumn CommandName="Delete" ImageUrl="~/images/delete.gif" KeyField="GoogleMapKeyID" />
                </Columns>

I noted that the first Item runs, but the second doesn't fire the event.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0OnDeleteCommand event doesnOnDeleteCommand event doesn't fire in the DataGrid


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