protected void viewfiles(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "savefiles") { if (Page.IsPostBack) { int Index = Convert.ToInt32(e.CommandArgument); GridViewRow row = gvunclassified.Rows[Index]; DropDownList Offices = row.FindControl("DDept") as DropDownList; String deparmentname = (Offices is DropDownList) ? Offices.SelectedValue : null; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)