本文介绍了我可以在QueryString中使用Or Operators的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做到了

< asp:MenuItem NavigateUrl =〜/ cancellation.aspx?Registration = ConfirmText =Cancellation/>





i希望此链接将参数传递给另一个具有2个值的页面

如下:



< asp:MenuItem NavigateUrl =〜/ cancellation.aspx?Registration = Wating || Registration = ConfirmText =Cancellation/>



ca任何人帮助我

感谢您的建议

i did it
<asp:MenuItem NavigateUrl="~/cancellation.aspx?Registration=Confirm" Text="Cancellation" />
but

i want this link pass parameters to another page with 2 values
to be as this :

<asp:MenuItem NavigateUrl="~/cancellation.aspx?Registration=Wating|| Registration=Confirm" Text="Cancellation" />

ca anyone help me
thanks for advice

推荐答案

"~/cancellation.aspx?Registration=Confirm&Text=Cancellation"





现在



now in

cancellation.aspx



在页面加载时如下所示






do like below on page load


string registartion=Request.QuersyString["Registration"].Tostring();
 string text=Request.QuersyString["Text"].Tostring();



这篇关于我可以在QueryString中使用Or Operators的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 09:51