1

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

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>"
4

1 回答 1

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)创建到一个变量中,然后稍后将其添加到字符串的其余部分。

于 2013-09-16T10:28:43.867 回答