0
在繼續點擊代碼中,它給出錯誤「控件必須位於頁面的控制樹
」參數名稱:控件「如何從AJAX調用後的代碼(C#)中顯示javascript警報消息
$('#' + btnContinueClientID).click(function()
{
ToShowAlertMessage()
}
function ToShowAlertMessage(controlName, segmentID, passengerID) {
$.post("/JQuerySeatMap.aspx",
{ ClickedControl: controlName,
str1: str1,
str2: str2,
str3: str3
},
public string ContinueClick(string str1, string str2, string str3)
{
ScriptManager.RegisterStartupScript(this, GetType(), "ClientScript", "alert('Alert
Message.');, true);
}
But in the ContinueClick code it gives an error "The control must be in the control tree
of a page. Parameter name: control"