Posted on: 10/4/2013 5:42:01 PM | Views : 278

previously i try to approve /reject thrugh buttons and i try to code it but now i try to approve/reject through dropdownlist but i dont know how i code though dropdownlist....

this is code when i add buttons of approve and reject..
protected void GrdFileApprove_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "_Approve") { //using (SqlConnection con = DataAccess.GetConnected()) using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["mydms"].ConnectionString)) { try { con.Open(); int rowindex = Convert.ToInt32(e.CommandArgument); GridViewRow row = (GridViewRow)((Control)e.CommandSource).NamingContainer; Button Prove_Button = (Button)r ...

Go to the complete details ...