protected void rgvOptions_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { var txtPoint = (TextBox)e.Item.FindControl("txtPoint"); var txtOption = (TextBox)e.Item.FindControl("txtOption"); if (txtPoint != null && txtOption != null) { var option = new PollOptionDTO { Option = txtOption.Text, Point = Convert.ToInt32(txtPoint.Text), PollQuestionId = Convert.ToInt32(Request.QueryString["qid"]) }; if (eb.AddOrUpdatePollOption(option)) { rgvOptions.Rebind(); } } }