我在母版页和一个Imagebutton中选择了五个下拉列表。 单击图像按钮下拉列表的值将传递到服务器端进行处理,结果将显示在另一个内容页面上。
答案 0 :(得分:0)
使用可以使用Session
变量,如下所示:
首先使用值
启动Session变量Session["variablename"] = value //can be int, string, datatable, array etc
在其他页面上使用
getvalue = Session["variablename"].ToString() //if the value is string type (or convert it accordingly)
如果Session
变量的使用结束,则将其转储。
Session.Remove("variablename");