我如何将这两个句子合而为一?

时间:2013-09-16 10:21:01

标签: asp-classic

如何将这两个句子合而为一?

response.Write "<a href=""javascript:;"" onclick=""winBRopen('../share/include/asp_date_picker_calendar-v1.2/cal_popup.asp?FormName=condForm&amp;FieldName=" & mDate & "_Day&amp;FieldName1=" & mDate & "_Day&amp;FieldName2=" & mDate & "_Month&amp;FieldName3=" & mDate & "_Year&amp;Date=" & mDate & "/" & mDate & "/" & mDate & "&amp;CurrentDate=" & Date() & "','popup_cal','241','276','no','no')"">"
response.Write "<td align=left ><img src='..\common_pic\cal.gif' border='0' class=DatePicker alt=Pick A Date /></a></td>"

1 个答案:

答案 0 :(得分:1)

你的意思是这样吗?

response.Write "<td align=left ><a href=""javascript:;"" onclick=""winBRopen('../share/include/asp_date_picker_calendar-v1.2/cal_popup.asp?FormName=condForm&amp;FieldName=" & mDate & "_Day&amp;FieldName1=" & mDate & "_Day&amp;FieldName2=" & mDate & "_Month&amp;FieldName3=" & mDate & "_Year&amp;Date=" & mDate & "/" & mDate & "/" & mDate & "&amp;CurrentDate=" & Date() & "','popup_cal','241','276','no','no')""><img src='..\common_pic\cal.gif' border='0' class=DatePicker alt=Pick A Date /></a></td>"

顺便说一下,它没有很好地格式化,你可以尝试使用string.Format并将链接(a)创建为一个变量,然后将其添加到字符串的其余部分。