//获得搜索参数开始
string SearchTypes = DDL_SearchTypes.Text;
string Key = tb_Key.Text.ToString();
if (SearchTypes != "" && Key != "")
{
intPageNo = 1;
Response.Cookies["strc"].Value = "And " + SearchTypes + " Like '" + '%' + Key + '%' + "'";
//Session["strc"] = "And " + SearchTypes + " Like '" + '%' + Key + '%' + "'"; }
//string str_Condition = Session["strc"].ToString();
string str_Condition = Request.Cookies["strc"].Value.ToString();
//Response.Write(str_c);
Response.Write(str_Condition);
//获得搜索参数结束
每次换关键字搜索要点两次,str_Condition的值才会变,Cookies更新不及时,第一次清寒是显示的老的,第二次才显示新的.
string SearchTypes = DDL_SearchTypes.Text;
string Key = tb_Key.Text.ToString();
if (SearchTypes != "" && Key != "")
{
intPageNo = 1;
Response.Cookies["strc"].Value = "And " + SearchTypes + " Like '" + '%' + Key + '%' + "'";
//Session["strc"] = "And " + SearchTypes + " Like '" + '%' + Key + '%' + "'"; }
//string str_Condition = Session["strc"].ToString();
string str_Condition = Request.Cookies["strc"].Value.ToString();
//Response.Write(str_c);
Response.Write(str_Condition);
//获得搜索参数结束
每次换关键字搜索要点两次,str_Condition的值才会变,Cookies更新不及时,第一次清寒是显示的老的,第二次才显示新的.
解决方案 »
- vs2008连接MySQL
- 点击图片放大
- 下面这句话是什么意思啊
- asp.net中 虚拟路径和相对路径 问题求教
- 用VS2005英文版开发怎么使用.NET Framework的中文版?
- 关于角色管理的问题,请高手指点!
- 如何的到XML的返回格式?
- 制作安装文件中的问题
- 急,十分紧急。救命呀。
- .NET 2.0 VB,论坛程序
- 请教个问题: runat="server" Text='<%# Eval("ChangeMoney").ToString("N") %>这样报错:No overload for method 'ToString' takes '1' ar
- CheckBox怎么控制页面元素?
string x = "And " + SearchTypes + " Like '" + '%' + Key + '%' + "'";
Response.Cookies["strc"].Value = x;
string str_Condition = x;