悬赏园豆:20
[已解决问题]
解决于 2008-01-13 20:30
<FONT size=3>
<P>HTML端代码:</P>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 95%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:Image </SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="Image1"</SPAN><SPAN style="COLOR: #ff0000"> runat</SPAN><SPAN style="COLOR: #0000ff">="server"</SPAN><SPAN style="COLOR: #ff0000"> ImageUrl</SPAN><SPAN style="COLOR: #0000ff">="~/images/gg_1.jpg"</SPAN><SPAN style="COLOR: #ff0000"> ToolTip</SPAN><SPAN style="COLOR: #0000ff">="这是图片"</SPAN><SPAN style="COLOR: #ff0000"> </SPAN><SPAN style="COLOR: #0000ff">/></SPAN></DIV></DIV>
<P>这样子是可以显示的。如果换成如下代码就会显示不出来。请教是什么原因呢?</P>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 95%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">asp:Image </SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #0000ff">="Image1"</SPAN><SPAN style="COLOR: #ff0000"> runat</SPAN><SPAN style="COLOR: #0000ff">="server"</SPAN><SPAN style="COLOR: #ff0000"> ImageUrl</SPAN><SPAN style="COLOR: #0000ff">="<%=Request.ApplicationPath%>/images/gg_1.jpg"</SPAN><SPAN style="COLOR: #ff0000"> ToolTip</SPAN><SPAN style="COLOR: #0000ff">="这是图片"</SPAN><SPAN style="COLOR: #ff0000"> </SPAN><SPAN style="COLOR: #0000ff">/></SPAN></DIV></DIV>
<P>在ie中查看图片地址为:<BR></P>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #000000">http://localhost:1467/WebSite1/</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #ffff00"><%</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">Request.ApplicationPath</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">%></SPAN><SPAN style="COLOR: #000000">/images/gg_1.jpg</SPAN></DIV>
<P><BR>绑定代码根本就没有执行,怎么回事呢?</P>
<P>还有就是为什么有时在HTML端输入<%# %>后,在里面输入时没有提示,比如DataBinder等等,有时也不会变色?</P>
<P>----</P>
<P>ps:标题才50个字符好像太少了点吧</P></FONT>