#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
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