.net中用户自已填加内容到页面中

来源:百度知道 编辑:UC知道 时间:2024/09/28 09:07:28
就象baidu这个问题补充一样怎么样留一个文本框让用户输入内容,然后点击提交以后就把内容提交到指定页面,具体语句怎么写
呢如何对生成页面中的数据进行删除或修改

添加到数据库,就可以删除和修改内容了.
你的页面绑定到数据库,然后"delete*from[表名]where 列名="删除.updata修改,insert添加..

<!--submit.html-->
<html>
<title>测试</title>
<body>
<form name="myform" id="myform" method=post action="do_post.aspx">
<table style="width:400;font-size:12px">
<tr><td>标题:</td><td><input type=text name="title" id="title" /></td></tr>
<tr><td>内容:</td><td><textarea rows=10 name="content" id="content" /></td></tr>
</table>
</form>
</body>
</html>
--------------------------------------
//do_post.aspx
//只写了主要代码
//获取提交的数据
string title=Request.Form["title"].tostring();
string content=Request.Form["content"].tostring();

就用WEBFFOM提交嘛

form 里面写 act