如何使用url路由将数据从一个页面发送到另一个页面? [英] how can send datas from one page to anotherpage with url routing?

查看:81
本文介绍了如何使用url路由将数据从一个页面发送到另一个页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当有人从x.aspx(搜索表单)中选择一些数据时,有一个搜索表单和超链接,点击超链接控制结果,看到b.aspx但有些数据会从x页面发送到b页面。



但超链接导航网址路由如何使用网址路由发送这些数据(搜索表单文本框下拉列表等)



there is a search form and hyperlink when somebody select some data from x.aspx(search form) and click hyperlink control results seeing b.aspx but some datas will sending from x page to b page.

but hyperlink navigate url routing how can send these datas(search form textbox dropdownlist etc.) with url routing

<asp:HyperLink ID="hyperara" runat="server" CssClass="btn btn-block btn-info btn-lg" NavigateUrl="<%$ RouteUrl:RouteName=Indrm,Parametre=???????(from form textbox,dropdown,etc) %>" ><span>Araç Bul / Find my vehicle now</span></asp:HyperLink>


or

click hyperlink same time run url routing and fire button click event so may be send these datas with button click event from code behind.

推荐答案

RouteUrl:RouteName = Indrm,Parametre = ???????(来自表单文本框,下拉列表等)%> > < span > AraçBul/现在找我的车辆< / span > < / asp:HyperLink >




单击超链接同时运行URL路由和触发按钮单击事件,这样可以通过后面的代码中的按钮单击事件发送这些数据。
RouteUrl:RouteName=Indrm,Parametre=???????(from form textbox,dropdown,etc) %>" ><span>Araç Bul / Find my vehicle now</span></asp:HyperLink> or click hyperlink same time run url routing and fire button click event so may be send these datas with button click event from code behind.


这篇关于如何使用url路由将数据从一个页面发送到另一个页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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