<%
string url = Request.QueryString["hdpic"].ToString();
Response.Write(url);
%>
<body>
<form id="form1" runat="server">
<div>
<asp:Image ID="Image1" runat="server" Height="111px" Width="106px" ImageUrl="--------------------" /> </div>
</form>
</body>
</html>
如何把获取的url加到imageurl后面啊 如果直接用$怎么写?
<%
string url = Request.QueryString["hdpic"].ToString();
Request.setAttribute("imgUrl",url);
DataBind();
%>
<body>
<form id="form1" runat="server">
<div>
<asp:Image ID="Image1" runat="server" Height="111px" Width="106px" ImageUrl='<%#Request.QueryString["hdpic"]%>' /> </div>
</form>
</body>
</html>
<%
string url = Request.QueryString["hdpic"].ToString();
Request.setAttribute("imgUrl",url);
%>
<body>
<form id="form1" runat="server">
<div>
<asp:Image ID="Image1" runat="server" Height="
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息