Asp.net asp页面中的主题
我有一个html表单,在其中我给出了一个主题。现在我想在asp页面的div标记中显示该主题。。 我的html页面是:Asp.net asp页面中的主题,asp.net,themes,Asp.net,Themes,我有一个html表单,在其中我给出了一个主题。现在我想在asp页面的div标记中显示该主题。。 我的html页面是: <html> <head runat="server"> <title>Untitled Page</title> </head> <body background="file:/C:/Documents and Settings/Desktop/themes/images8.jpg"> &l
<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"/>
但这并没有显示任何主题。
请帮帮我。您正在将html页面分配给
ImageUrl
属性,因此它无法工作
如果希望在网页中显示图像,请将其映射到所需的图像
文件