62,041
社区成员
发帖
与我相关
我的任务
分享
string strFileName = strDate + ".shtml";//存储到数据库中
string strTitle=Request.Form["Title"].ToString().Trim();//接收传过来的标题
string strContent=Request.Form["Content"].ToString().Trim();//接收传过来的内容
string[] content = strContent.Split(new Char[] {' ¦'});//对内容进行拆分,并保存到数组
int upbound = content.Length;//数组的上限
SqlServerDataBase db = new SqlServerDataBase();
bool success = db.Insert("insert into inNews(Title,Content,FilePath)values('" + strTitle + "','" + strContent + "','" + strFileName + "')", null);
string[] content = strContent.Split(new Char[] {'¦'});
//这句话很可疑,俺猜是用来分页的(江湖人都知道,地球人都知道,就俺不知道,正在华山闭关修炼泥!)