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??
<