读书人

ASP调入SQL数据库时,数据库字段有先后

发布时间: 2012-02-11 09:51:34 作者: rapoo

ASP调入SQL数据库时,数据库字段有先后顺序
比如先调用后面的字段就没不能显示
<input name= "department " type= "text " id= "department " value= " <%=cc( "department ")%> ">
<input name= "craftwork " type= "text " id= "craftwork " value= " <%=cc( "craftwork ")%> ">
这样可以显示,但
<input name= "craftwork " type= "text " id= "craftwork " value= " <%=cc( "craftwork ")%> ">
<input name= "department " type= "text " id= "department " value= " <%=cc( "department ")%> ">
记录就显示不出来了


[解决办法]
不应该有这个问题吧!
那你就这样:

<%
cw=cc( "craftwork ")
dm=cc( "department ")
%>
<input name= "craftwork " type= "text " id= "craftwork " value= " <%=cw%> ">
<input name= "department " type= "text " id= "department " value= " <%=dm%> ">


[解决办法]
是备注型的字段把?而且记录打开方式是0,1的?换1,1看看

读书人网 >ASP

热点推荐