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

下面这段代码老是报错:“int”并不包含“TbString”的定义。求高手给予指点!

新一x 发布于 2012-04-03 21:46, 371 次点击
public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {for(int i=1;i<=9;i++)
    {for(int j=1;j<=i;j++)
        {Response.Write(i.TbString()+""+j.TbString()+"="+(i*j).TbString());
        Response.Write ("&nbsp;&nbsp;");
        }

    }
        Response .Write ("<br/>");
    }
}
1 回复
#2
yms1232012-04-08 15:40
只有ToString的函数没有TbString的函数
public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {for(int i=1;i<=9;i++)
    {for(int j=1;j<=i;j++)
        {Response.Write(i.ToString()+""+j.ToString()+"="+(i*j).ToString());
        Response.Write ("&nbsp;&nbsp;");
        }

    }
        Response .Write ("<br/>");
    }
}
1