关于ASP 编写的问题,谁帮帮我

来源:百度知道 编辑:UC知道 时间:2024/05/17 07:40:21
添加数据的时候,省市那栏我是用的下拉选项,和JS调用。
数据添加进以后,然后修改数据,如何让省市默认为我修改过的省市。
其他项目我是这样写的:
%if isedit then response.Write(tel) end if%

<select name="select">
<option value="1" <%if x=1 then response.write("selected='selected'")%>>沈阳</option>
<option value="2" <%if x=2 then response.write("selected='selected'")%>>辽阳</option>
<option value="3" <%if x=3 then response.write("selected='selected'")%>>朝阳</option>
</select>

直接调用就可以了

你描述的很模糊!

你的意思不是很明白..要是从数据库就可以直接调用

把要修改的那条记录中的省市直接从数据库中调出来
放在列表的第一个位置,然后再把省市全部调出来,这样你要修改的那个省市就定为默认显示了