一旦onClick事件调用了点击的功能,我一直试图让一个简单的警报显示出来。我已经用它来尝试实现它,但没有在DOM中更新任何内容并且没有警报出现:(
这是我为实现上述目标所做的调用,我尝试了不同的变量,例如RegisterOnSubmin和RegisterStartUp。非常感谢任何帮助。
HttpResponse httpResponse = this.Response;
httpResponse.Clear();
ClientScript.RegisterClientScriptBlock(GetType(), "loginClicked", "alert('ehllo')", true);
sendJNLPResponse(httpResponse);
httpResponse.End();