0
업데이트 패널을 제대로 업데이트하지 못하는 것 같습니다. 때로는 UpdatePanel1.Update()를 수행 할 때 업데이트되고 때로는 업데이트되지 않습니다. 나는 정말로 도움이된다.UpdatePanel이 업데이트되지 않습니다.
internal SourceRcon rcon;
protected void Page_Load(object sender, EventArgs e)
{
rcon = new SourceRcon();
IPEndPoint point = new IPEndPoint(IPAddress.Parse("192.168.1.120"), 27015);
rcon.ConnectionSuccess += new BoolInfo(rcon_ConnectionSuccess);
rcon.Connect(point, "password");
}
void rcon_ConnectionSuccess(bool info)
{
if (info)
{
rcon.ServerOutput += new StringOutput(rcon_ServerOutput);
rcon.ServerCommand("status");
}
}
void rcon_ServerOutput(string output)
{
UpdatePanelText.Text = output;
UpdatePanel1.Update();
}
"출력"문자열은 항상 변경됩니다. 그러나 시간의 약 90 %는 updatepanel의 레이블에 기본 텍스트 또는 "레이블"이 표시됩니다. –
그런 다음 실험을하고 Firefox에서 페이지를 실행하고 "net"탭을보십시오. 중단 된 요청을 찾으십시오. 이러한 요청이 도움이 될 수 있습니다. – IamDeveloper
중단 된 요청이 표시되지 않습니다 ... "301 moved permanently"및 "302 moved temporarily". –