Sesion变量在aspx页面中 [英] Sesion variable In aspx page
本文介绍了Sesion变量在aspx页面中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在下拉菜单中选择aspx页中设置会话变量的值,
我在下拉列表的选择更改时调用函数,但是如何在aspx页面中设置会话变量值.
请回复.
在此先感谢
Hi ,
i need to set the value of session variable in aspx page on select of drop down,
I am calling function on selection change of dropdown but how to set the session variable value in aspx page.
Please Reply.
Thanks In Advance
推荐答案
Page.Session["YourVariableName"] = YourVariableValue;
您可以在此处找到更多信息 [
You can find more info here[^]
在选定的索引更改"中,将值放入会话变量中.
In Selected index change put value in session variable.
Session["Val"] = Dropdownlist1.Text;
这篇关于Sesion变量在aspx页面中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文