Exemplo n.º 1
0
 protected void lstProductImages_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     productImageId = (int)e.Keys["ProductImageId"];
 }
 protected void lstChildMyTag_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 3
0
 protected void uoCountryList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
 protected void uoVehicleVendorList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 5
0
 protected void listviewComment_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 6
0
 protected void lstForumDetails_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 7
0
    protected void lvExamResponse_ItemDeleting(object sender, ListViewDeleteEventArgs e)
    {
        Label          lblResponseSlno    = lvExamResponse.Items[e.ItemIndex].FindControl("lblSlNo") as Label;
        LinkButton     lbExamResponseFile = lvExamResponse.Items[e.ItemIndex].FindControl("lbtnResponseFile") as LinkButton;
        SqlTransaction Trans;

        try
        {
            con.Open();
            Trans = con.BeginTransaction();
            SqlCommand cmd = new SqlCommand();
            cmd.Transaction = Trans;
            cmd.CommandText = "ExamResponseDelete";
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Connection  = con;
            SqlParameter pm1 = new SqlParameter();
            pm1.SourceColumn  = "FileNo";
            pm1.ParameterName = "@FileNo";
            pm1.Value         = lblFileNo.Text.Trim();
            pm1.SqlDbType     = SqlDbType.Char;
            pm1.Direction     = ParameterDirection.Input;
            SqlParameter pm2 = new SqlParameter();
            pm2.SourceColumn  = "ExaminationReport";
            pm2.ParameterName = "@ExaminationReport";
            pm2.Value         = ddlFER.SelectedItem.Text.Trim();
            pm2.SqlDbType     = SqlDbType.Char;
            pm2.Direction     = ParameterDirection.Input;
            SqlParameter pm3 = new SqlParameter();
            pm3.SourceColumn  = "ResponseSlNo";
            pm3.ParameterName = "@ResponseSlNo";
            pm3.Value         = lblResponseSlno.Text.Trim();
            pm3.SqlDbType     = SqlDbType.Int;
            pm3.Direction     = ParameterDirection.Input;
            cmd.Parameters.Add(pm1); cmd.Parameters.Add(pm2); cmd.Parameters.Add(pm3);
            cmd.ExecuteNonQuery();
            try
            {
                string sourceFile = @"F:\PatentDocument\" + lblFileNo.Text.Trim() + @"\Examination" + @"\" + lbExamResponseFile.Text.Trim();
                System.IO.File.Delete(sourceFile);
            }
            catch (Exception ex)
            {
                ClientScript.RegisterStartupScript(GetType(), "Error", "<script>alert('" + ex.Message.ToString() + "')</script>");
                Trans.Rollback();
                con.Close();
                return;
            }
            Trans.Commit();
            ClientScript.RegisterStartupScript(GetType(), "success", "<script>alert('This Record successfully Deleted')</script>");
            con.Close();
        }
        catch (Exception ex)
        {
            ClientScript.RegisterStartupScript(GetType(), "Error", "<script>alert('" + ex.Message.ToString() + "')</script>");
            con.Close();
            return;
        }
        string    sql = "select * from examinationResponse where FileNo ='" + lblFileNo.Text.Trim() + "' and ExaminationReport='" + ddlFER.SelectedItem.Text.Trim() + "' order by ResponseSlNo";
        DataTable dt  = SelectExamination(sql);

        ViewState["ExamRptResponse"] = dt;
        if (dt.Rows.Count == 0)
        {
            lvExamResponse.InsertItemPosition = InsertItemPosition.LastItem;
        }
        lvExamResponse.DataSource = dt;
        lvExamResponse.DataBind();
    }
Exemplo n.º 8
0
 protected void uoHotelContractList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
 protected void uoSeaportList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
        protected void uoListViewAttachment_ItemDeleting(object sender, ListViewDeleteEventArgs e)
        {
            LinkButton uoLinkButtonFileName = (LinkButton)uoListViewAttachment.Items[e.ItemIndex].FindControl("uoLinkButtonFileName");

            AttachmentListRemove(uoLinkButtonFileName.Text);
        }
 protected void uoRoomsList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 12
0
 protected void ScheduleList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     this.BindShceduleData();
 }
Exemplo n.º 13
0
 protected void ListView1_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     ListView1.Items.RemoveAt(e.ItemIndex);
     classClsItemsManager.ItemToDelete = e.ItemIndex;
 }
 //Need to create because of "productList_ItemCommand" event
 protected void productList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 15
0
 protected void uoListViewRemarks_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     HiddenField hdfRemarksID = (HiddenField)uoListViewRemarks.Items[e.ItemIndex].FindControl("uoHiddenFieldRemarksID");
     DeleteRemarks(GlobalCode.Field2Int(hdfRemarksID.Value));            
 }
Exemplo n.º 16
0
 protected void _rprt_OnItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     //
 }
Exemplo n.º 17
0
 protected void lstChildViewActivity_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
 protected void lvwMyTours_OnItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 19
0
 protected void ListViewUsers_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     this.userService.DeleteUser(this.User.Identity.GetUserId());
     this.ListViewUsers.DataSource = this.userService.GetAllUsers();
     this.ListViewUsers.DataBind();
 }
Exemplo n.º 20
0
 protected void ListView1_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 21
0
 protected void ltvCidades_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     ltvCidades.Items[e.ItemIndex].Visible = false;
 }
 protected void uoNationalityList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 23
0
		protected override void OnItemDeleting (ListViewDeleteEventArgs e)
		{
			RecordEvent ("Enter");
			base.OnItemDeleting (e);
			RecordEvent ("Leave");
		}
        // List views
        protected void lvSearchIndex_OnItemDeleting(object sender, ListViewDeleteEventArgs e)
        {
            var recordId = (int)lvSearchIndex.DataKeys[e.ItemIndex].Value;

            clearIndexRecord(recordId);
        }
Exemplo n.º 25
0
 protected void uoListviewImmigrationCompany_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 26
0
 protected void lvGreenhouses_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
 protected void lvwSitemapData_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 28
0
 void ABR_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
 }
Exemplo n.º 29
0
 protected void ListView_Budget_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     Label lable = ListView_Budget.Items[e.ItemIndex].FindControl("Label2") as Label;
     IOrderedDictionary keyValuePairs = e.Values;
 }