using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using WorkoPlus.BOL; public partial class SubscriptionManager : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void lnkInsert_Click(object sender, EventArgs e) { Subscription obj = new Subscription(); obj.Description = txtDescription.Text; obj.DetailDescription = txtDetailDescription.Text; obj.SubscriptionType = Convert.ToInt32 (ddlSubscriptionType.SelectedValue); obj.Charges = Convert.ToDecimal(txtCharges.Text); obj.Duration = Convert.ToInt32 (txtDuration.Text); obj.DurationType = Convert.ToInt32(ddlDurationType.SelectedValue); obj.Active = chkActive.Checked; obj.Insert(); Response.Redirect("SubscriptionManager.aspx"); } protected void grdview_RowCommand(object sender, GridViewCommandEventArgs e) { int i = 0; } protected void grdview_RowEditing(object sender, GridViewEditEventArgs e) { int i = 0; } protected void ObjectDataSource1_Updating(object sender, ObjectDataSourceMethodEventArgs e) { int i = 0; } }