首页上一页 1 下一页尾页 1 条记录 1/1页
为何出现“输入字符串格式不正确”?
发表在ASP.NET图书答疑
2009-04-28
是否精华
是
否
版块置顶:
是
否
大家帮帮我看看这个问题,八竿子打不着的地方出现“输入字符串格式不正确”
tools t=new tools()这句会有字符串输入问题吗?谢谢
public partial class frame_chat : System.Web.UI.Page, ICallbackEventHandler
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
rendercall();//绘制客户端回调函数
if (!User.Identity.IsAuthenticated) return;//如果是未登录用户,返回
[font color=#FF0000]tools t=new tools();[/font]
bool havemsg;//是否有新消息
//构造显示联系人信息的脚本
string str = "document.getElementById('myfriend').innerHTML=\"" + t.LoadStr(0, out havemsg) + "\";";
str += "document.getElementById('myblack').innerHTML=\"" + t.LoadStr(1, out havemsg) + "\";";
str += "document.getElementById('mystranger').innerHTML=\"" + t.LoadStr(2, out havemsg) + "\";";
str += "document.getElementById('mygroup').innerHTML=\"" + t.LoadGroupStr() + "\";";
ClientScript.RegisterStartupScript(this.GetType(), "ii", str, true);//注册脚本
}
}
tools t=new tools()这句会有字符串输入问题吗?谢谢
public partial class frame_chat : System.Web.UI.Page, ICallbackEventHandler
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
rendercall();//绘制客户端回调函数
if (!User.Identity.IsAuthenticated) return;//如果是未登录用户,返回
[font color=#FF0000]tools t=new tools();[/font]
bool havemsg;//是否有新消息
//构造显示联系人信息的脚本
string str = "document.getElementById('myfriend').innerHTML=\"" + t.LoadStr(0, out havemsg) + "\";";
str += "document.getElementById('myblack').innerHTML=\"" + t.LoadStr(1, out havemsg) + "\";";
str += "document.getElementById('mystranger').innerHTML=\"" + t.LoadStr(2, out havemsg) + "\";";
str += "document.getElementById('mygroup').innerHTML=\"" + t.LoadGroupStr() + "\";";
ClientScript.RegisterStartupScript(this.GetType(), "ii", str, true);//注册脚本
}
}