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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Arrrgh, Can someone please help?Arrrgh, Can someone please help?
Previous
 
Next
New Post
2/25/2009 3:31 PM
 

I am trying to create a DNN 4.9.0 site from an existing asp.net site.  I am in the process of createing modules for each of the data input forms.  All these forms work in ASP.Net, but I swear every other one has issues running in DNN.

My current problem today is a delete button in a formview does not work:  It DID work before I copied the code to DNN. and Yes the code is the same in both places:

The Delete button code looks like this:

<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete"

Text="Delete" OnClientClick="return confirm('Are you sure you want to delete this record?');" OnClick="DeleteButton_Click" >

</asp:LinkButton>

The OnClick event just redirects back to a parent page and that works.  When I press the Delete button I get the Confirm message, then nothing happens.

 Im not sure why the Delete event does not happen in DNN.  I dont see any delete event in SQL Server Profiler either.  Any idea?  Here is the Delete Code: 

DeleteCommand="DELETE FROM [Retailer_Product_TBL] WHERE [Client_Item_Number] = @Client_Item_Number AND [Retailer_Number] = @Retailer_Number" DeleteParameters>

<asp:QueryStringParameter Name="Client_Item_Number" QueryStringField="C" Type="String" />

<asp:QueryStringParameter Name="Retailer_Number" QueryStringField="R" Type="Int32" />

</DeleteParameters>

 

 

 

 

 

UPDATE*** I read somewhere that the DataKeyNames was causing someone else the same issue.  I have 2 DataKeyNames.  Can DNN handle this??

<

 
New Post
2/27/2009 7:06 PM
 

please check your module caching and ensure it's set to 0, otherwise the events don't get fired

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Arrrgh, Can someone please help?Arrrgh, Can someone please help?


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