会话值以QueryString的形式传入菜单控件 [英] Session Value to pass in Menu Control as QueryString

查看:84
本文介绍了会话值以QueryString的形式传入菜单控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将会话值作为QueryString传递给菜单控件

例如:Admin.aspx?ax =<%= Name%>这句话有什么错误吗?使用此语句,Session ["Name"]值不会作为QueryString在菜单控件中传递.
如果有人知道,请回复.

How can a Session Value to pass in Menu Control as QueryString

For eg : Admin.aspx?ax=<%=Name%> Is there any mistake in this statement. With this statement Session["Name"] value is not passed as QueryString in the menu control.
If anybody knows,do reply.

推荐答案

我假设您正在使用超链接或任何客户端重定向控制.如果要执行此操作,请使用linkbutton和on_click链接按钮执行此操作

I am assuming you are using a hyperlink or any client side redirection control. If you want to do this then use linkbutton and on_click of link button do this

Response.redirect("Admin.aspx?ax=" + Session["Name"].tostring());


这篇关于会话值以QueryString的形式传入菜单控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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