要重新加载页面上的按钮单击事件 [英] To reload the page on button click event

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

问题描述

大家好,

我正在使用VB.net中的代码处理asp.net应用程序.

我有"report.aspx"页面,在该页面上有一个面板,在该面板上实现了数据更新功能.
确认更新后,我只想在按钮单击事件中再次重新加载"report.aspx".

我已经完成了Response.redirect(),但是对我来说不起作用,因为它显示了所有要隐藏的面板.

谁能帮我.

在此先感谢.
Yogesh

Hello all,

I am working on asp.net application with code behind in VB.net.

I have "report.aspx" page and on that I hae one panel on which data updating functionality is implemented.
After confirming the update I just want to reload the "report.aspx" again on button click event.

I have already done Response.redirect() but it dose not work for me as it shows all the panels which I want to hide.

Can anybody help me.

Thanks In Advance.
Yogesh

推荐答案

如果您正在谈论asp面板,并希望在重定向到同一页面后将其隐藏,则请检查此脏代码.

If you are talking about asp panels and want to hide them after redirecting to same page then Check this dirty code.

Response.Redirect("Default.aspx?Load=Load");


在Default.aspx的页面加载事件中


In Page load event of Default.aspx

if(Request.QueryString["Load"]!=null)
{
 //code to hide panels
}


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

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