87,903
社区成员
发帖
与我相关
我的任务
分享
//加入收藏
//使用方法<a href="javascript:addFav();">加入收藏</a>
function addFav()
{
window.external.AddFavorite('http://www.greatverve.cn', '大气象');
}
//设为首页
<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.greatverve.cn');">设为首页</a>
string DocId = this.DocId.Text.ToString();
string Name = this.Name.Text.ToString();
string sql = "insert into tt_Type (DocId,Name) values ('" + DocId + "','" + Name + "')";
SQLHelper dbsh = new SQLHelper();
int count = dbsh.RunSQL(sql);
if (count > 0)
{
Response.Write("<script>alert('插入成功!');</script>");
}
else
{
Response.Write("<script>alert('插入失败!');</script>");
}