单击按钮后显示另一页 [英] show another page after click on button
本文介绍了单击按钮后显示另一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
i有一个登录页面&我想要点击进入按钮后关闭llogin页面并打开一个带有网格视图的页面我有两个页面但我不知道显示新页面的代码
plz帮我坦克
hi
i have a login page & i want after click on enter button close the llogin page and open a page with grid view i have both the pages but i dont know the code for showing new page
plz help me tanks
推荐答案
如果它是一个ASP.NET应用程序,你可以简单地做:
If it's an ASP.NET application you can simply do:
Response.Redirect("index.aspx"); // Replace index.aspx with name of your page.
Response.Redirect(anotherpage.aspx);
< br $>
或
Server.Transfer(anotherpage.aspx);
Response.Redirect("anotherpage.aspx");
or
Server.Transfer("anotherpage.aspx");
这篇关于单击按钮后显示另一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文