Javascript SelectionChange不传递代码隐藏

Javascript SelectionChange不传递代码隐藏,javascript,c#,asp.net,Javascript,C#,Asp.net,场景:用户单击编辑图标,出现对话框。如果单击yes(或Ok,一个肯定的响应),一个函数将开始工作 当然,它不起作用,我不明白为什么 图标和对话框。注意action标签 <div style="float:left; padding-top:10px; margin-right:5px; margin-left:5px;"> <div class "btnbeyan" value="{Index}" action ="cancel" style="float:left; cu

场景:用户单击编辑图标,出现对话框。如果单击yes(或Ok,一个肯定的响应),一个函数将开始工作

当然,它不起作用,我不明白为什么

图标和对话框。注意action标签

<div style="float:left; padding-top:10px; margin-right:5px; margin-left:5px;">
<div class "btnbeyan" value="{Index}"  action ="cancel"  style="float:left; cursor: pointer; padding-top:10px; margin-right:5px; margin-left:5px;">
<img src="../../../img/Edit_Icon.png" OnClick=" if(!confirm('Beyanı değiştirmek istediğinizden emin misiniz?')) return false;" style ="cursor: pointer;" />
</div>
<img src="../../../img/imgTrue.png"/>
</div>
最后,特西尔杜泽尔特姆()

对话框工作正常,但当我在调试模式下单击“是”时,我在dvBeyanlar_SelectionChange中没有看到任何变化,我缺少什么

编辑:大部分代码是由另一名员工编写的,我只是根据需要进行一些修改。

显然,我在“btnbeyan”类中忘记了“=”

它应该是“class=“btnbeyan”

我不确定我是否应该删除这个问题,或者留下它,以防将来有人也会这样心不在焉

<SelectionChange OnEvent="dvBeyanlar_SelectionChange" ViewStateMode="Enabled">
<ExtraParams>
<ext:Parameter Name="id" Value="selections[0].getAttribute('value')" Mode="Raw">
</ext:Parameter>
<ext:Parameter Name="action" Value="selections[0].getAttribute('action')" Mode="Raw">
</ext:Parameter>
</ExtraParams>
<EventMask ShowMask="True" Target="This" />
</SelectionChange>
protected void dvBeyanlar_SelectionChange(object sender, Ext.Net.DirectEventArgs e)
    {
        int Index = Convert.ToInt32(e.ExtraParams["id"]);
        if (e.ExtraParams["action"] == "del")
        {
            DelBeyan(Index);
        }
        else if (e.ExtraParams["action"] == "cancel")
        {
            TescilDuzeltme(Index);
        }
        else EditBeyan(Index);
    }
public void TescilDuzeltme(int BeyanIndex)
    {
        //a Stored Procedure works
        //Response.Redirect();
    }