<img src ="~/UserControls/Vote/Images/Arrow Up.png" id = "vote-up-off"
runat = "server" alt ="vote up"
class="voteupImage" style="height: 45px; width: 44px"/>
在這裏,我想改變形象的Src在一定條件下像如何用C#來改變HTML圖片src
if (a==4)
{
src url shuld be ......
}
else
{
src url should be...
}
我假設你正在使用Webforms - 我試圖反映這個 – 2010-10-07 07:19:08