如何通过值URL在C# [英] How to pass values in URL in c#
本文介绍了如何通过值URL在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我重定向到一个页面的ChangePassword,我想通过USEREMAIL和密码,我在当前页面获得url。我怎样才能通过它在URL中。我不想使用会话或饼干。
的Response.Redirect(为ChangePassword.aspx);
解决方案
的Response.Redirect(为ChangePassword.aspx MyParam = myvalue的?);
请参阅:<一href=\"http://msdn.microsoft.com/en-us/library/t9dwyts4%28v=VS.90%29.aspx\">http://msdn.microsoft.com/en-us/library/t9dwyts4%28v=VS.90%29.aspx
I am redirecting to a page changepassword, I want to pass the useremail and password in the url which I get in the current page. How can I pass it in the url. I dont want to use session or cookie.
Response.Redirect("ChangePassword.aspx");
解决方案
Response.Redirect("ChangePassword.aspx?MyParam=MyValue");
See: http://msdn.microsoft.com/en-us/library/t9dwyts4%28v=VS.90%29.aspx
这篇关于如何通过值URL在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文