ramco1917 says:
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"
);
}
}
Replace with below code.
protected void lnkUpdateStatus_Click(object sender, EventArgs e)
{
try
{
RepeaterItem ritem = (RepeaterItem)((LinkButton)sender).NamingContainer;
txtStudentName.Text = (ritem.FindControl("ltrlStudentName") as Literal).Text;
}
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");
}
}