如何将这两个句子合而为一?
response.Write "<a href=""javascript:;"" onclick=""winBRopen('../share/include/asp_date_picker_calendar-v1.2/cal_popup.asp?FormName=condForm&FieldName=" & mDate & "_Day&FieldName1=" & mDate & "_Day&FieldName2=" & mDate & "_Month&FieldName3=" & mDate & "_Year&Date=" & mDate & "/" & mDate & "/" & mDate & "&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>"
答案 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&FieldName=" & mDate & "_Day&FieldName1=" & mDate & "_Day&FieldName2=" & mDate & "_Month&FieldName3=" & mDate & "_Year&Date=" & mDate & "/" & mDate & "/" & mDate & "&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)创建为一个变量,然后将其添加到字符串的其余部分。