带有ajax的ASP.net - 复选框控件 [英] ASP.net with ajax - Check box control
本文介绍了带有ajax的ASP.net - 复选框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个会计的Web应用程序。检查复选框时,我需要从DB加载组合框的值。但是当选中复选框时,页面不应重新加载。我用ajax更新面板试了好几次。但它没有成功。
我不知道使用ajax更新面板控件的正确方法。
请指导我。最紧急。
'亲爱的是复选框事件,我打算叫什么
I m developing a web application for accounting. I need to load the values to combo box from DB when check box checked. But when Check box checked page should not reload. I tried several time with ajax update panel. But it was not success.
I dont know the correct way of using ajax update panel control.
Please guide me. Top urgent.
'Belove is the Check box event what i wan to call
Protected Sub ChkWHTBand_CheckedChanged(sender As Object, e As EventArgs) Handles ChkWHTBand.CheckedChanged
GetTaxMaster()
End Sub
特定活动的网页编码
web page coding for specific event
<td class="auto-style48">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<table class="auto-style42">
<tr>
<td>
<asp:CheckBox ID="ChkWHTBand" runat="server" Text="Is WHT Applicable" OnCheckedChanged="ChkWHTBand_CheckedChanged" />
</td>
</tr>
<tr>
<td>
<asp:DropDownList ID="ddTaxWHTPicker" runat="server" Font-Names="Tahoma" Height="22px" Width="150px" onclick="ddTaxWHTPicker_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
推荐答案
设置ScriptManager.EnablePartialRendering = true
Set ScriptManager.EnablePartialRendering =true
我发现它是我自己的。 Ispostback = true
谢谢大家
I found it my self. Ispostback=true
Thanks Everyone
这篇关于带有ajax的ASP.net - 复选框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文