asp 中if then如何使用
<%ifComPic=then%><tdheight="30"><spanclass="td_line_col_FFFFFFSTYLE3">公司执照上传:</span><...
<%if ComPic= then%>
<td height="30"><span class="td_line_col_FFFFFF STYLE3">公司执照上传:</span><span class="td_line_col_FFFFFF">
<input name="ComPic" type="text" class="input_bk_D2D2D2" id="ComPic" size="25" value="<%=ComPic%>" />
</span><span class="td_line_col_FFFFFF">
<input type="submit" name="Submit" value=" 修 改 " />
</span><span class="td_line_col_FFFFFF">
<input type="button" name="Submit2" value=" 上传照片 " onclick="UploadLogo();" />
</span></td>
<%else%>
<td height="30" class="td_line_col_FFFFFF STYLE1">上传成功!</td>
我想用上面代码来检查数据库 ComPic 中是否有数据 要是没数据执行上传代码
要是有数据则显示上传成功
各位大侠 上面的代码该怎么改?谢谢 展开
<td height="30"><span class="td_line_col_FFFFFF STYLE3">公司执照上传:</span><span class="td_line_col_FFFFFF">
<input name="ComPic" type="text" class="input_bk_D2D2D2" id="ComPic" size="25" value="<%=ComPic%>" />
</span><span class="td_line_col_FFFFFF">
<input type="submit" name="Submit" value=" 修 改 " />
</span><span class="td_line_col_FFFFFF">
<input type="button" name="Submit2" value=" 上传照片 " onclick="UploadLogo();" />
</span></td>
<%else%>
<td height="30" class="td_line_col_FFFFFF STYLE1">上传成功!</td>
我想用上面代码来检查数据库 ComPic 中是否有数据 要是没数据执行上传代码
要是有数据则显示上传成功
各位大侠 上面的代码该怎么改?谢谢 展开
2个回答
展开全部
<%if ComPic="" then%>
<td height="30"><span class="td_line_col_FFFFFF STYLE3">公司执照上传:</span><span class="td_line_col_FFFFFF">
<input name="ComPic" type="text" class="input_bk_D2D2D2" id="ComPic" size="25" value="<%=ComPic%>" />
</span><span class="td_line_col_FFFFFF">
<input type="submit" name="Submit" value=" 修 改 " />
</span><span class="td_line_col_FFFFFF">
<input type="button" name="Submit2" value=" 上传照片 " onclick="UploadLogo();" />
</span></td>
<%else%>
<td height="30" class="td_line_col_FFFFFF STYLE1">上传成功!</td>
<%end if%>
<td height="30"><span class="td_line_col_FFFFFF STYLE3">公司执照上传:</span><span class="td_line_col_FFFFFF">
<input name="ComPic" type="text" class="input_bk_D2D2D2" id="ComPic" size="25" value="<%=ComPic%>" />
</span><span class="td_line_col_FFFFFF">
<input type="submit" name="Submit" value=" 修 改 " />
</span><span class="td_line_col_FFFFFF">
<input type="button" name="Submit2" value=" 上传照片 " onclick="UploadLogo();" />
</span></td>
<%else%>
<td height="30" class="td_line_col_FFFFFF STYLE1">上传成功!</td>
<%end if%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询