如何重定向页面 [英] How to redirect a page

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

问题描述

我要从另一个页面重定向页面.我编写了代码,将数据插入到插入按钮中的表中.此后,我想重定向到另一个页面,在那里我可以显示表格数据以及更新的页面我是新的.net.请给我简单的逐步操作程序,并请提供一些示例代码来完成此操作.

解决方案

您尝试过Google吗?
http://www.techrepublic.com/blog/在aspnet/743中进行编程和开发/双向处理 [Response 类的Redirect 函数.试试这个:

 Response.Redirect(" );  

--Amit


有两种方法可以将一页转移到另一页.

Server.transfer("DestinationPage.aspx");
Response.Redirect("DestinationPage.aspx");


I want to redirect a page ,from other page .I have written code to insert data into a table in a insert button.After this i want to redirect to one more page where i can display table data along with updated one also.I am new .net.Please give me simple step by step procudeure to do and please proide some sample code to do this

Have you tried google?
http://www.techrepublic.com/blog/programming-and-development/two-approaches-to-redirection-in-aspnet/743[^]

Good luck!


After inserting the data("This is the task which you are doing."), call the Redirect function of Response class. Try this:

Response.Redirect("MyPage2.aspx");



--Amit


Here two ways are available to transfer one page to other page.

Server.transfer("DestinationPage.aspx");
Response.Redirect("DestinationPage.aspx");


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

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