protected void btnsavetofolders_Click(object sender, EventArgs e) { foreach (ListViewDataItem item in LstViewAppbyjob.Items) { CheckBox checkslct = item.FindControl("checkslct") as CheckBox; if (checkslct != null) { if (checkslct.Checked) { Label lblprofileid = item.FindControl("lblprofileid") as Label; if (Session["EmployerId"] != null) { JPosted.EmployerId = Convert.ToInt16(Session["EmployerId"]); JPosted.intProfileId = Convert.ToInt16(lblprofileid.Text); JPosted.JobPostedId = Convert.ToInt16(Request.QueryString["JobPostedId"]); if (DdlFolders.SelectedIndex == 0) { JPosted.intFolderId = 0; } else { //JS.intFolderId = Convert.ToInt16(DSShowEmpFolders.Tables[0].Rows[0]["FolderId"]); JPosted.intFolderId = Convert.ToInt32(DdlFolders.SelectedValue); } int CountSave; CountSave = JPosted.InsertIntoSavedProfileInEmpFolders(); if (CountSave > 1) { lblmsg.Text = "This profile Already exist in your folder"; } else lblmsg.Text = "This profile has been successfully saved to your folder"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)