页面刷新问题 [英] Problem in page refresh

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

问题描述

大家好,

我已经在项目中发送邮件了.

我在页面中提供了图像按钮.点击后会显示一个弹出窗口,我在其中放置了按钮以显示相关的学生,老师和所有人.

我的问题是,单击该弹出按钮后,我的父页面和弹出窗口都会刷新.我没有放入任何可能导致此问题的代码.

任何人都可以建议可能发生的问题吗?.

在此先谢谢您.

Hi all,

I have made a feature of sending mail in my project.

I have provided a image button in the page. On clicking on that it shows a popup window where I have put buttons to show associated student, teacher and all.

My problem is that on clicking on that popup button my parent page and the popup window both gets refreshed. I don''t have put any code which can cause this.

Can any one suggest what will be possible issues due to which this can happen..?

Thanks in advance.

推荐答案

您可以使用AjaxControlToolkit的ModelPopupExtender代替弹出窗口.
You can use ModelPopupExtender of AjaxControlToolkit instead of popup window.


如果我理解您的问题, ImageButton必须引起刷新(以官方术语回发).您可以使用其他替代项,例如图像本身,并在客户端上处理其单击并显示弹出窗口.
If I understand your question, the ImageButton must be causing the refresh (postback in official terms). You can use something alternate like an image itself and handle its click on the client side and show the popup.


这篇关于页面刷新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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