在已实现的项目中使用Ajax [英] Using Ajax in implemented project
本文介绍了在已实现的项目中使用Ajax的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我有一个转发器重复包含方案的表...
我有金额字段和一个标签来计算总金额
如果取消选中该记录上的复选框,然后扣除金额..
我使用简单的asp.net实现了这一点
客户端希望在Ajax中使用...我没有好处Ajax的知识
我知道一种方法是学习和实施但是在这里我需要快速的解决方案
你能给我相同的
谢谢
这里是asp代码
< pre lang = HTML > < asp:标签 ID = lblTotalAmount runat = 服务器 文字 = <总计 金额 > > < / asp:标签 > < / span >
< asp:UpdatePanel < span class =code-attribute> ID = up1 runat = server >
< ContetentTemplate >
< asp:Repeater ID = rptScheme runat = 服务器 >
< ItemTemplate >
< asp:CheckBox ID = chkEnable runat = server CssClass = css-checkbox 已检查 = true < span class =code-attribute> AutoPostBack = true 键 =' <% #Eval( id)%>' / >
< < span class =code-leadattribute> / ItemTemplate >
< / asp:Repeater >
< ; / ContetentTemplate >
< 触发器 >
< asp:AsyncPostBackTrigger ControlID = chkEnable EventName = CheckedChanged / >
< /触发器 >
< / asp:UpdatePanel >
解决方案
即使要实现一个你不知道的框架的解决方案,你必须有一些关于它的概念。
所以我认为最好先学习一下ajax,至少一些基本概念
喜欢这里.... AJAX学习
而不是使用Google来获得快速解决方案。
喜欢这个。 ... Google ^
希望它会有所帮助。 :)
Hi
I have a repeater to repeat table containing schemes...
In that I have amount field and one label to calculate total amount
If check box on that record is unchecked then amount should be deducted..
I have implemented that using simple asp.net
Client want that in Ajax.. I dont have good knowledge of Ajax
I know one way is to learn and implement but here I need fast solution
Will u provide me the same
Thanks
here is asp code
<pre lang="HTML"><asp:Label ID="lblTotalAmount" runat="server" Text=<Total Amount>></asp:Label></span>
<asp:UpdatePanel ID="up1" runat="server" >
<ContetentTemplate>
<asp:Repeater ID="rptScheme" runat="server">
<ItemTemplate>
<asp:CheckBox ID="chkEnable" runat="server" CssClass="css-checkbox" Checked="true" AutoPostBack="true" Key='<%# Eval("id") %>'/>
</ItemTemplate>
</asp:Repeater>
</ContetentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="chkEnable" EventName="CheckedChanged" />
</Triggers>
</asp:UpdatePanel>
解决方案
Even to implement a solution of a framework which you dont know, You must have some concepts about that.
So I think its better to first learn ajax a bit, at least some basic concepts
Like from here.... AJAX Learning
and than use Google to get some fast solution.
like this. ...Google^
Hope it will help. :)
这篇关于在已实现的项目中使用Ajax的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文