注册 登录
编程论坛 ASP.NET技术论坛

当前上下文中不存在名称“Common”

水晶心 发布于 2010-08-17 16:40, 1221 次点击
protected void Button1_Click(object sender, EventArgs e)
    {
        string search = "";
        if (!string.IsNullOrEmpty(TextBox2.Text))
        {
            search += "and Uname like'%" + Common.ForamatParameter(TextBox2.Text) + "%'";
        }
        string Sql="select*from kaoqin";
        PageNavigator1.Total = 1;
        PageNavigator1.Query = Sql;
        
    }
2 回复
#2
misswang2010-08-17 16:54
不存在,那你怎么写错来了呢?
#3
NewDeveloper2010-08-17 18:18
程序代码:
string search = "";
        if (!string.IsNullOrEmpty(TextBox2.Text))
        {
            search += "and Uname like'%" + Common.ForamatParameter(TextBox2.Text) + "%'";
        }
        string Sql="select*from kaoqin";
加红的Common 你哪来的。。。

还有 string Sql="select*from kaoqin"; ===》string Sql="select * from kaoqin";(别老是忘记空格)

1