本文介绍了错误:CS1026 :)预期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您知道这段代码可能出什么问题吗?
do you know what could be wrong with this code?
<asp:CheckBox runat="server" ID="chbMajorIncidentSelection" OnCheckedChanged="javascript:OnCheckedChanged();"/>
我收到错误消息:CS1026:).
我想说这应该起作用,在与复选框相同的控件上,在JavaScript中定义函数OnCheckedChanged.
I''m getting an error: CS1026: ) expected.
I would say that this should work, that function OnCheckedChanged is defined in javascript, on the same control as the checkbox.
推荐答案
<asp:checkbox id="CheckBox1" runat="server" onchange="javascript:OnCheckedChanged();" xmlns:asp="#unknown" />
最好的
All the Best
这篇关于错误:CS1026 :)预期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!