나는 TimeReceived가 null의 경우 1. 레드를 표시하는 것을 시도하고, (나)에 따라 2. 호박 수신 시간이 null가 아니고, 시간 읽기가 null (또는) 3 시간 읽기는 조건
null가 아닌 경우 내가 조건에 따라 이미지를 표시 할 수있는 방법, 잘못된 갈거야 곳. 그린이 오류
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 86: {
Line 87: Image img = (Image)e.Row.FindControl("image1");
Line 88: switch (int.Parse(e.Row.Cells[1].Text))
Line 89: {
Line 90: case 0:
에게 던졌습니다. 나는 rowdatabound를 제대로하지 않았다고 생각합니다. 도와주세요.
뭔가 떠나는 것 같습니다. 그리드의 이미지를 보면 Cells [1]의 데이터가 정수가 아닌 datetime 인 것처럼 보입니다. 이것은 구문 분석에 대해 틀린 형식 예외를 던질 것입니다. ID에 맞는 셀 #에 액세스하고 있는지 확인하십시오. –