不使用javascript和ajax如何不刷新页面 [英] Without using javascript and ajax how the page is not to be refreshed

查看:67
本文介绍了不使用javascript和ajax如何不刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我使用复选框将当前地址复制到紧急地址。但是当我点击复选框时页面正在刷新。我不想在不使用ajax和javascript的情况下刷新页面。

In my application i am using checkbox to copy current address to emergency address.but when i clicked on checkbox the page is getting refreshed. i don''t want to get page is refreshed without using ajax and javascript.

推荐答案

单击复选框时,页面可以通过两种方式刷新:

1)你有 AutoPostBack属性 [ ^ ]设置为true。

2)你有一个javascript事件绑定到复选框的点击,然后提交表单。



检查哪种情况适用于您的情况。确保您将复选框的 AutoPostback 属性设置为false,并且在检查时不回复您的表单。
There are two ways a page can refresh when you click a checkbox:
1) You have it''s AutoPostBack Property[^] set to true.
2) You have a javascript event bound to checkbox''s click which then submits the form.

Check which is applicable in your case. Do ensure you are setting AutoPostback property of the checkbox to false and not posting back your form on checking it.


这篇关于不使用javascript和ajax如何不刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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