计算机专业毕业设计:[55]编辑功能5
1、我们通过点击文章标题后面的【编辑】按钮,已经可以打开文章编辑界面,并显示内容了
![计算机专业毕业设计:[55]编辑功能5](https://exp-picture.cdn.bcebos.com/49c5d3e34b2c56ee8ebf59baf775e5f4fdf54015.jpg)
2、对界面进行修改,添加返回按钮
![计算机专业毕业设计:[55]编辑功能5](https://exp-picture.cdn.bcebos.com/354e7a781423beb972fffe7630d6e1d06ce8b315.jpg)
3、【提交修改】按钮里面写入代码 string ID = Request.QueryString["new_id"].ToString(); if (txtTitle.Text != "" || txtTime.Text != "" || txtAuthor.Text != "" || Content.Value != "") { string sql_change = "update news set new_title='"+txtTitle.Text+"',new_center='"+Content.Value+"',new_author='"+txtAuthor.Text+"',new_time='"+txtTime.Text+"' where new_id='"+ID+"'"; }
![计算机专业毕业设计:[55]编辑功能5](https://exp-picture.cdn.bcebos.com/0cdb2f0e1799e92aaf799df4e1fec314f0c5a015.jpg)
4、保存代码,并启动调试,输入账号密码进入编辑界面
![计算机专业毕业设计:[55]编辑功能5](https://exp-picture.cdn.bcebos.com/07c98f2ca5cadce8b289df48fcf7980e5e209515.jpg)
5、填入新闻发布时间,点击【提交修改】
![计算机专业毕业设计:[55]编辑功能5](https://exp-picture.cdn.bcebos.com/b87bd38920c5260fa6f4023ed2de450789018915.jpg)
6、提示修改信息成功,页面里面信息准确性我们下一步考虑,先实现功能
![计算机专业毕业设计:[55]编辑功能5](https://exp-picture.cdn.bcebos.com/9a8fd9f88a775dddb68d3afea427e7ef2906f915.jpg)
7、修改成功之后,发现时间变为了1900年,是因为我们传递的值不是时间类型的是文本类型的
![计算机专业毕业设计:[55]编辑功能5](https://exp-picture.cdn.bcebos.com/e0c73a2fa872941ff125eb6e7b5e4a237871e615.jpg)