ASP.Net TextChange和PostBack问题 [英] ASP.Net TextChange and PostBack Issue

查看:67
本文介绍了ASP.Net TextChange和PostBack问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网页包含40个文本框。

在一个textBox中我必须输入开始日期。

在另一个文本框中我输入持续时间。

在第三个我想要的总数。



要在第三个textBox中显示结果,我需要重新加载整个页面,所以它需要花费太多时间。



请建议我替代方式。



我不需要日期计算,已完成。

My Webpage contains 40 textboxs.
In one textBox I have to enter the start Date.
In another textbox I am entering Duration.
In the third one I want the total.

To display the result in the third textBox, I need to reload the whole page, so its taking too much time.

Please suggest me the alternative way.

I don''t need the date calculation, that is done.

推荐答案

您可以使用javascript / Jquery而不是回复。





You can use javascript/Jquery for this rather than doing a post back.



' 元素')。change( function (){ // < span class =code-comment>做某事});
('element').change(function() { // do something } );





如果你真的想在服务器上这样做侧。您也可以使用Ajax(更新面板)或PageMethod。您可以在互联网上搜索大量的示例,并使用最符合您要求的示例。



if you really want to do this on server side. You can use Ajax (Update Panel) for that as well or PageMethod. You can search a lot of examples of that on internet and use which best suits your requirements.


这篇关于ASP.Net TextChange和PostBack问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆