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...Building ExtensionsBuilding ExtensionsModulesModulesWeird error with Deleting a row in a GridviewWeird error with Deleting a row in a Gridview
Previous
 
Next
New Post
11/18/2010 1:23 PM
 
Hi,

I am having a weird problem with Deleting a row in a gridview. I have a template field that has image buttons for Delete and Edit




CommandArgument="<%# Container.DataItemIndex %>" CommandName="View"
ImageUrl="~/images/Edit.gif" ToolTip="View Billing Entry" />
CommandArgument="<%# Container.DataItemIndex %>" CommandName="Delete"
ImageUrl="~/images/Delete.gif" ToolTip="Delete Billing Entry" OnClientClick="return confirm('Are you sure you want to delete this Entry?');"/>





If I click the delete button, it doesn't respond. I have been trying to test some stuff with this, and it seems that the event isn't firing at all I have set some alerts to RowCommand and they dont show up. If I click the Add button, Edit button, or Delete, nothing happens at all.

on some of my pages I am using Mandeeps LiveTabs. If I move the module with the gridview into a Tab of Live Tabs, everything works exactly as it is meant to. This is really confusing me, as it points towards all of my code being correct, but there is something going on with the page that is stopping it from working. I have tried recreating it from scratch and I still have this problem.

Has anyone else experienced this or know if there is something on a DNN page that might prevent the event from occuring?

Another note, I am using a SQL Datasource as the datasource for the GridView, If I check off "Enable Deleting" then it does indeed delete the way it is meant to. The problem is I can't then do a javascript confirm prompt if it is a Command Field.

Thanks for any help.

Chris

 
New Post
11/23/2010 1:26 AM
 
It definitely sounds like the delete event is getting intercepted somehow.  Have you been able to verify through the debugger?

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
11/23/2010 2:41 PM
 
Hi Will,

I started up the website with debugging and when I clicked on the delete, it just did nothing again, no error or anything.

I also tried adding in the Gridview RowCommand

if e.CommandName = "Delete" Then
CustomFunctions. Hi!!!")
End If

Which should make an alert box pop up when I click delete, but nothing.

Is there something else I should look at for debugging to see what might be occuring?

Thanks,

Chris
 
New Post
11/24/2010 10:52 AM
 
Well, this appears to be a classic debugging issue where your event is not properly firing, or your debug isn't working right.  Make sure your project is compiled in debug mode, and your site is set to debug.  

Next, step through your code in the debugger to see what events are indeed firing.  If you're using a grid event, then make sure your logic is in the correct event method.  Sometimes, there are similar events that actually are used for different purposes, or fire a different times.

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
11/29/2010 10:04 AM
 
Hi Will,

I went into IIS manager, and made sure the site was set to debug, I also confirmed that the project is compiled in debug mode.

Still when I click on the delete button it is not throwing any errors or anything for me to then step through the code. It just postsbacks the page and does nothing.

Chris
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesWeird error with Deleting a row in a GridviewWeird error with Deleting a row in a Gridview


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