在asp.net中的页面之间移动 [英] move between pages in asp.net

查看:57
本文介绍了在asp.net中的页面之间移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在Web应用程序中有两个Web表单,它们是在asp.net中创建的,我想在表单中包含标签,当我按下标签时,转到其他表单并递出

Hi,
I have two web form in my web application that I create they in asp.net I want to have labels in my forms and when I press a label go to other form and overhand

推荐答案

您好,

尝试使用Response.Redirect("Page.aspx")或使用linklabel并设置"targeturl".
Hello,

try it with Response.Redirect("Page.aspx") or use a linklabel and set the ''targeturl''.


如果您不需要进行任何服务器端处理,您可以在客户端使用Java语言中的window.location = ''newurl.aspx''(或仅使用带有href!的超链接).这样可以节省服务器的访问量(导航到一个页面,然后导致重定向,是两次点击).

如果您需要执行一些服务器处理然后转到新页面,那么Response.Redirect可能就是您想要的.
If you don''t need to do any serverside processing, you can use window.location = ''newurl.aspx'' in Javascript (or simply a hyperlink with a href!) on the client side. That will save you a server hit (navigating to a page that then causes a redirect is two hits).

If you need to do some server processing and then go to a new page, then Response.Redirect is probably what you want.


这篇关于在asp.net中的页面之间移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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