Author: jamesscott666699 | Posted on: 11/30/2009 7:22:12 AM | Views : 261

Hi,
I am currently developing a ASP.Net web application which is connecting to a SQL Database.


I have a page called ManagePolicy which is dynamically creating instances of a UserControl called AddEditSchedule, depending on how many rows there are in the schedule table within the database. This is working correctly and it is adding the controls and passing the related values in.



The control contains a remove button which is supposed to remove a record from the database and then remove the instance of that control from the screen.
The problem is when i click the remove button, it does not fire an event.


here is the code from the AddEditSchedule.ascx.cs control below:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;

public partial clas ...

Go to the complete details ...