protected void btnSaveAttribute_Click(object sender, EventArgs e) { string strListSource = ""; if (rdoLstAttributeDataType.SelectedValue == "LIST") { strListSource = ddlListSource.SelectedValue; } int responseid = objBLL.InsertDocAttribute(txtAttribute.Text.Trim(), rdoLstAttributeDataType.SelectedValue.ToString(), strListSource); GridViewAttributes.DataBind(); }
private void BindAttribuite() { DataTable dt = new DataTable(); if (Session["Folder_Id"] != null) { Folder_Id = Convert.ToInt32(Session["Folder_Id"].ToString()); dt = objINFO.Get_AssignedAttributes(Folder_Id).Tables[0]; GridViewAttributes.DataSource = dt; GridViewAttributes.DataBind(); // Session["Folder_Id"] = null; } }
protected void GridViewAttributes_SelectedIndexChanged(object sender, EventArgs e) { int DocTypeID = 0; int AttributeID = 0; int IsRequired = 0; if (GridViewDocType.SelectedIndex >= 0 && GridViewAttributes.SelectedIndex >= 0) { DocTypeID = int.Parse(GridViewDocType.SelectedValue.ToString()); AttributeID = int.Parse(GridViewAttributes.SelectedValue.ToString()); //IsRequired = int.Parse(GridViewAttributes.SelectedValue.ToString()); int responseid = objBLL.Add_AttributeToDocType(DocTypeID, AttributeID, IsRequired); GridViewAttributes.DataBind(); GridViewDocAttributeLinking.DataBind(); } }
protected void ObjectDataSource2_Deleted(object sender, ObjectDataSourceStatusEventArgs e) { GridViewAttributes.DataBind(); }