如何在其加载事件中隐藏aspx页面并重定向到另一个aspx页面 [英] How do I hide an aspx page in its load event and redirect to another aspx page

查看:94
本文介绍了如何在其加载事件中隐藏aspx页面并重定向到另一个aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii Dears



可以告诉我如何在其加载事件中隐藏aspx页面。

我有3个aspx页面。在第一页上有一个按钮。在这个按钮上单击我们将

重定向到第二个aspx页面。在第二页的加载事件中,我们将自动重定向到第三个aspx页面。

用户只想查看第一页和第三页。但目前用户可以看到所有3页。我无法避免第二页,因为它包含一些复杂的计算。第二页将起作用,当且仅当它从第一页获得一些数据而第三页仅在从第二页获取数据时才起作用。

我试过this.visible = false; Response.Redirect(defaul2.aspx);在第二页的页面加载事件中。但它仍显示第二页。如果有人有这个想法,请帮助我..





谢谢大家......

解决方案

您可以在大约15秒钟内找到答案。所有你需要做的就是谷歌 asp.net重定向页面 [ ^ ]。


在第二页的Page_Load方法中写入



 Response.Redirect(defaul2.aspx); 


感谢您的回复



我写过



this.visible = false;

Response.Redirect(defaul2.aspx);



在第二页的加载事件中。它功能正常,但显示第二页。

实际上用户不想看到第二页。你能告诉我如何隐藏用户的第二页......



谢谢你


Hii Dears

could any one please tell me how to hide an aspx page in its load event.
I have 3 aspx pages. On the first page there is a button.On this button click we will redirect
to second aspx page. On the load event of second page we will redirect to third aspx page automatically.
User just want to see the first and third pages only.But presently the user can see all the 3 pages. I can not avoid the second page because it contains some complex calculations.The second page will work if and only if it gets some data from the first page and the third page will work only if it gets data from the second page.
I have tried " this.visible=false; Response.Redirect("defaul2.aspx"); " in the page load event of second page.but still it shows the second page. If anyone has idea about this kindly help me..


Thank You all......

解决方案

You could have found the answer to this yourself in about 15 seconds. All you have to do is Google for "asp.net redirect page[^]".


In your Page_Load method of second page write

Response.Redirect("defaul2.aspx");


Thank you for your reply

I have written

this.visible=false;
Response.Redirect("defaul2.aspx");

in the load event of second page.It functions properly but it shows the second page.
Actually the user doesn't want to see the second page. could you please tell me how to hide the second page from the user...

thank you


这篇关于如何在其加载事件中隐藏aspx页面并重定向到另一个aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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