이유는 모르겠지만 PageLoad() 함수 내에서 ASP 응용 프로그램 내부에서 자바 스크립트 경고가 표시됩니다. 그것은 잘 처리하지만, 내가 얻을 다른 작업을하려고 할 때 오류 다음 (이것은 또한 단지 IE 및 디버그 모드에서 비주얼 스튜디오()에서 발생) :C#의 자바 스크립트 문제
이Line: 4056
Error: Unspecified error.
Response.Write("<script language='javascript'>alert(' You currently have an incomplete quote.\\n Here is your customers information: \\n First Name: " + _firstName + " \\n Last Name: " + _lastName+ " \\n Number Of Drivers: " + _driveList.Count().ToString() + " \\n Number Of Vehicles: " + _vehicleList.Count().ToString() + " \\n Date Of Quote: " + _pendingQuote.Date.ToString() + " ')</script>");
Visual Studio 또는 브라우저에서 생성되는 오류입니까? 코드에서 그 시점까지 도달하면 응답 스트림이 닫습니까? – NotMe
C# 코드를 게시 할 수 있습니까? –
이 경우 문자열 연결을 사용하지 마십시오. String.Format을 사용하십시오. –