我有一个dotnet 2.0网络应用程序。
我的更新面板外面有一个按钮......
内部更新面板..我有一个gridview ...在排序网格时,我需要在更新面板外禁用该按钮。
请帮帮我。
<table>
<tr>
<td>
<UpdatePanel>
<gridview />
</UpdatePanel>
</td>
</tr>
<tr>
<td>
<Button />
</td>
</tr>
<table>
编辑:
我在服务器端排序功能上尝试了以下代码 - 但没有工作
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "",
"<script>document.getElementById('" + ((Button)DualGridTableRow.FindControl(string.Concat(WebConstants.PriorityText, WebConstants.UpText))).ClientID + "').style.enabled ='False';</script>"
, true);
答案 0 :(得分:0)
您可以在排序按钮(链接)的onclick事件中添加禁用功能。不知道它是否优雅,但它会起作用。 只有一点,如果你需要它只是为了禁用按钮而异步排序我认为这是不必要的。