2011-05-22 97 views
0

我有一個html表單,其中我給出了一個主題。現在我想顯示div標籤在ASP頁主題.. 我的HTML頁面:在asp頁面中的主題

<html> 
<head runat="server"> 
    <title>Untitled Page</title> 
</head> 
<body background="file:/C:/Documents and Settings/Desktop/themes/images8.jpg"> 
    <form id="form1" runat="server"> 
    <div> 
    <h1> 
    header_picture 
    </h1> 
    <img src="file:/C:/Documents and Settings/All Users/Documents/My Pictures/Sample Pictures/Water lilies.jpg" style="width:480px; height:150px; background-position:centre;"/> 

    </div> 
    <div> 
    <h1> 
    here comes the content 
    </h1> 
    </div> 
    <div> 
    <h2> 
    footer_picture 
    </h2> 
    <img src="file:/C:/Documents and Settings/All Users/Documents/My Pictures/Sample Pictures/Blue hills.jpg" style="width:480px; height:150px; background-position:centre;" /> 
    </div> 
    </form> 
</body> 
</html> 

和我使用的代碼顯示主題爲:

<asp:Image ID="img1" runat="server" Width="80px" Height="80px" ImageUrl="~/themes/form.html"/> 

但這不是顯示任何主題。 請幫我出去..

回答

0

你正在分配一個html頁面到ImageUrl屬性,所以它不會工作。

如果您希望將該圖像顯示在網頁上,請將其映射到所需的Image文件。