<!--广告区域begin-->
<GridBlock HAlign="Right" Name="adBanner">
<ImageButton Name="adbg" Width="120" Height="68" Image="images/adbg.png" OnClick="doAdClick" Margin="0,-72,0,2" UrlKind="ServerResource" />
<ImageButton Name="adimgonlin" Width="120" Height="68" Image="http://img.qiyegou.cn/Photos/Images/ad.png" OnClick="doAdClick" Margin="0,-72,0,2" UrlKind="Server" />
<ImageButton Name="adimgRe" IsVisible="false" Width="120" Height="68" Image="images/ad.png" OnClick="doAdClick" Margin="0,-72,0,2" UrlKind="ServerResource" />
<ImageButton Name="adclose" Width="10" Height="10" Image="images/closeall.png" Margin="0,-120,-105,0" UrlKind="ServerResource" OnClick="doCloseAd" Hint="关闭"/>
</GridBlock>
<!--广告区域end-->
网址替换掉Image="http://img.qiyegou.cn/Photos/Images/ad.png"
来源:https://www.cnblogs.com/gzjsrj/p/12298493.html