我有两个aspx页面:Default.aspx和with_Image.aspx。 从Default.aspx中,我试图显示一个位于with_Image.aspx中的jpg图像。 with_Image.aspx显示jpg图像没有问题。但是Default.aspx不显示任何图像,只显示“X”。aspx与图像不显示时调用<img src="with_Image.aspx" >
在Default.aspx的:
<body>
<form id="form1" runat="server">
<div>
<img src="with_Image.aspx" runat="server" id="imgCaptcha" />
</div>
</form>
</body>
</html>
在with_Image.aspx:
<body>
<form id="form1" runat="server">
<img src="image.jpg" />
</form>
</body>
</html>
缺少什么?