#region 接受带选择参数Cookies的值 public string selGetCookies(HttpCookie req, int sel) { string result = string.Empty; ; if (req != null) { switch (sel) { case 1: //接受用户类型 HttpCookie htp1 = req; result = htp1.Values["usertype"].ToString(); break; case 2: //接受社区编号 HttpCookie htp2 = req; result = htp2.Values["reginid"].ToString(); break; case 3: //接受用户树菜单 HttpCookie htp3 = req; result =htp3 .Values ["usermenu"].ToString (); break; case 4: //接受用户肤色 HttpCookie htp4 = req; result = htp4.Values["userfacid"].ToString(); break; default: break; } } return result; } #endregion
转载于:https://www.cnblogs.com/innovate-asp/archive/2007/11/01/945880.html
相关资源:JAVA上百实例源码以及开源项目
转载请注明原文地址: https://mac.8miu.com/read-20971.html