手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >内容添加asp.net
内容添加asp.net
摘要:privatevoidButton1_Click(objectsender,System.EventArgse){if(this.IsVal...

privatevoidButton1_Click(objectsender,System.EventArgse)

{

if(this.IsValid){

OleDbConnectionconn=dbconn.createconn();

conn.Open();

OleDbCommandcmd=newOleDbCommand();

cmd.CommandText="insertintoa(title,content)values('"+this.title.Text.Trim().Replace("'","")+"','"+this.content.Text.Trim().Replace("'","")+"')";

cmd.Connection=conn;

try

{

cmd.ExecuteNonQuery();

this.title.Text="";

this.content.Text="";

this.add_info.Text="提交成功";

}

catch

{

this.add_info.Text="出现错误";

}

finally{

conn.Close();

}

}

}

【内容添加asp.net】相关文章:

asp.net 动态生成表格

repeater分页 内容显示

asp.net 无重复随机数代码

asp.net 票据简单应用

asp.net图片上传实例

asp.net(c#) ubb处理类

asp.net下中文验证码,免费开源代码

asp.net实现md5加密

asp.net窗体操作总结

asp.net文件上传示例

精品推荐
分类导航