大大们 帮我看看这段有啥错误好吗 以前是学asp的·才开始研究。net···
。NET
{
if (Request("action").ToString() == "save")
string v = Request("content1").ToString().Replace("</DIV>", "#").Split(char.Parse("#"));
for (int i = 0; i < v.Length; i++)
tmpArray = v(i).Split(char.Parse(">"));
string id = tmpArray(1);
string sql = "update div2 set tx = '" + v(i) + "''</div>' where twh ='" + id + "'";
conn.execute(sql);
}
ASP:
<%
if request("action")="save" then
v = split(request("content1"),"</DIV>" )
for i=0 to ubound(v)-1
dim id
tmpArray = split(v(i),">")
id = tmpArray(1)
sql="update div2 set tx = '"& v(i) &"</div>' where twh ='"& id &"'"
conn.execute(sql)
next
end if
%>
上面是我自己转的。net 下面是asp的··asp的代码没有问题···。net的就是各种错误了··
PS:content1 是本页里面一个编辑器的传值。。
麻烦各位大大了,小弟才来···还没有分··不过日后一定给大大补上··