经常在公司写表单提交到数据库的页面(很简单的,只有一个页面,表单页面提交到数据库而已)目的都只是为了收集数据到数据库,所以让客户端的人提交表单但是每个表单字段都二三十个,甚至五六十个的都有,天天写这些东西烦呀,太花时间了是否有有类似sharepoint里面的表单工具一样,不会写程序的人也可以建立表单的字段,创建表单,自动生成页面了,客户端就可以提交数据了
解决方案 »
- asp.net基础
- SQL后缀名与存储过程
- 所有可能的字符串
- 如何访问自定义控件里的自定义控件的属性
- 如何得区分是哪个控件提交,并刷新了页面 ,急!!!!
- 急急!!!!!!!!!!!!!!!!!!!!!解答对者有分
- 求助!SqlDataAdapter能不能同时接收存储过程返回的数据集和参数?
- datagrid中模版列,dropdownlist数据绑定问题?
- 一个xml的简单问题
- MVC4 webapi 一个Controller中 多个HttpPost方法问题解决办法?
- 请教:js请求丢失数据的问题
- .net在网站代码中加入判断机制,如果发现URL中包含星号(*)和波浪号(~)则自动跳转到警告页面,并修改HTTP状态码为200
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>自动创建表格</title>
<style type="text/css">
table{
width:300px;
height:100px;
border:#0C9 1px solid;
border-collapse:collapse;
}
</style>
<script type="text/javascript" language="javascript">
function autocreate(){
//创建table表格
var table=document.createElement("table");
table.setAttribute("border","1");
table.setAttribute("background","red");
//获取行数值
var line=document.getElementById("line").value;
//获取列数值
var list=document.getElementById("list").value;
for(var i=0;i<=line;i++){
//alert(line);
//创建tr
var tr=document.createElement("tr");
for(var j=0;j<=list;j++){
//alert(list);
//创建td
var td=document.createElement("td");
tr.appendChild(td);
}
table.appendChild(tr);
}
document.getElementById("d1").appendChild(table);
}
</script>
</head>
<body>
<input type="text" id="line">行数
<input type="text" id="list">列数
<input type="button" value="添加表格" onclick="autocreate()">
<div id="d1" style="height:400px; width:300px;"></div>
</body>
</html>转=-------