万古天帝聂天八:关于ASP代码冲突时,程序不使用前一组代码而使用后一组,怎么办?

来源:百度文库 编辑:高考问答 时间:2024/04/29 03:46:22
由于内容过多,选择一部分内容如下:

'=================================================
'过程名:ShowWeb
'=================================================
strTemp=""
strTemp= strTemp & "<table width=100% border=0 cellspacing=3 cellpadding=0>"
strTemp= strTemp & "<tr>"
strTemp= strTemp & "<td width=25% rowspan=7>"
strTemp= strTemp & "<div align=center><a href=WebShow.asp?ID=" & rsDown("id") & ">"
strTemp= strTemp & "<img border=0 src=" & rsDown("PhotoUrl") & " width=100 height=120>"

'=================================================
'过程名:ShowDown
'=================================================
strTemp=""
strTemp= strTemp & "<table width=100% border=0 cellspacing=3 cellpadding=0>"
strTemp= strTemp & "<tr>"
strTemp= strTemp & "<td width=25% rowspan=7>"
strTemp= strTemp & "<div align=center><a href=DownloadShow.asp?ID=" & rsDown("id") & ">"
strTemp= strTemp & "<img border=0 src=" & rsDown("PhotoUrl") & " width=100 height=120>"

代码较多只能这样了。原因是无法程序命名不一样,但却无法找到上一条链接而直接跑到下一条链接,应该如何解决呢?
谢谢您的指点,希望可以在技术方便做些交流,QQ:18819627
我的意思其实很简单,可以加我QQ祥谈。谢谢

=================================================
'过程名:ShowDown
'=================================================
strTemp=""
这里 前面strTemp已经有值了,又把它置空,当然不能输出啦 把这行去掉。

没有明白你说的,改变量名试试?

不懂你的意思,无法找到上一条链接而直接跑到下一条链接这个是什么意思