按钮单击事件上的刷新页面. [英] Rfreshing page on Button click event.

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

问题描述

大家好,
我有2个.aspx页面,在我的应用程序中可以说page1和page2.在我的应用程序中,我为每个.aspx页使用VB.net代码.在page1中,我有一个ajax更新面板.在该更新面板上,我有几个按钮控件,几个文本框和一个html表.
在那个html表中,我只是嵌入了page2.现在,我只想刷新ajax更新面板上存在的按钮的click事件上的page2.
那么有人可以告诉我在Vb.net中执行此操作的代码行吗?

在此先感谢
Yogesh

Hello all,
I am having 2 .aspx pages lets say page1 and page2 in my application. In my application I am using VB.net code behind for each .aspx page. In page1 I am having one ajax update panel. On that update panel, I am having a few button controls, few text-boxes,and one html table.
And in that html table i just embedded page2. Now i just want to refresh page2 on the click event of the button present on ajax update panel.
So can anybody tell me the code line to do that in Vb.net?

Thanks In Advance
Yogesh

推荐答案

我不是ASP.Net专家,但是我认为您需要在UpdatePanel中将HTML表保留为UpdateMode并设置为有条件.单击该按钮时,可以调用UpdatePanel的Update方法,它将刷新其中的内容.
I am no ASP.Net expert but I think you need to keep the HTML table in an UpdatePanel with UpdateMode set to conditional. When the button is clicked, you can call the Update method of the UpdatePanel and it will refresh the contents inside it.


这篇关于按钮单击事件上的刷新页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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