Ho trovato la risposta per utilizzare doppio e triplo le virgolette sono insoddisfacenti. Ho usato un DO annidato ... LOOP per scrivere un segmento di codice ASP. Ci sono ripetute virgolette all'interno della stringa. Quando ho fatto funzionare il codice:
thestring = "<asp:RectangleHotSpot Bottom=""" & bottom & """ HotSpotMode=""PostBack"" Left="""& left & """ PostBackValue=""" &xx & "." & yy & """ Right=""" & right & """ Top=""" & top & """/>"
l'uscita era: < `asp: RectangleHotSpot inferiore =" 28
'Changing the code to the explicit chr() call worked:
thestring = "<asp:RectangleHotSpot Bottom=""" & bottom & chr(34) & " HotSpotMode=""PostBack"" Left="""& left & chr(34) & " PostBackValue=""" &xx & "." & yy & chr(34) & " Right=""" & right & chr(34) & " Top=""" & top & chr(34) &"/>"
L'output:
<asp:RectangleHotSpot Bottom="28" HotSpotMode="PostBack" Left="0" PostBackValue="0.0" Right="29" Top="0"/>
fonte
2013-07-28 14:58:09
un "alla fine manca – sushant
No, il codice sembra che vada bene. –
ottenuto. Grazie mille – sushant