Ramco Ramco

Ramco Ramco

  • 441
  • 3.4k
  • 523.2k

Wrong Value

Oct 13 2022 11:08 AM

Hi

  I have below code but it is showing System.Web.UI.WebControls.Literal in Student Name

protected void lnkUpdateStatus_Click(object sender, EventArgs e)
        {
            try
            {


                RepeaterItem ritem = (RepeaterItem)((LinkButton)sender).NamingContainer;

                txtStudentName.Text = Convert.ToString(ritem.FindControl("ltrlStudentName") as Literal);
                
            }
            catch (Exception ex)
            {
                Utility.SaveErrorLog(ex.Message, System.IO.Path.GetFileName(Request.Path), System.Reflection.MethodBase.GetCurrentMethod().Name, Convert.ToInt32(hdfLogisticsManagerID.Value));
                ShowMessage("Oops...", ex.Message, "error");
            }
        }

 


Answers (1)