CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP.NET - InMotion Framework

 Custom code after record deleted in Editable Grid

Print topic Send  topic

Author Message
cvboucher

Posts: 191
Posted: 10/25/2009, 10:03 PM

I need to execute some custom code after a record is deleted based on the primary key of the record deleted. How to I obtain the primary key value of the row that was deleted from the After Execute Delete event of an editable grid?

Thanks,
Craig
View profile  Send private message
cvboucher

Posts: 191
Posted: 10/26/2009, 7:03 PM

The following worked for me in the After Execute Delete event of the Editable Grid.

  
Dim TemplatePageID As String  
TemplatePageID = IS_TemplatePages.GetControl(Of MTTextBox)("TemplatePageID").GetText().Value  
If Not String.IsNullOrEmpty(TemplatePageID) Then  
   Dim path As String = ConfigurationManager.AppSettings("ServerPath") + "/innersight_template_pages/" + TemplatePageID + ".pdf.resources"  
   Dim file As New System.IO.FileInfo(path)  
   If (file.Exists) Then  
      file.Delete()  
   End If  
End If  

Craig
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.