Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 asp.net 网站上有一个面板
我正在尝试像这样在运行时添加图像
ASPX
<asp:Panel ID="pnl001" runat="server" Height="300px" Width="1174px" > </asp:Panel>
背后的代码
pnl001.BackImageUrl = "D:/mayur.jpeg"
请帮忙。谢谢!
如果你想从代码隐藏设置面板的背景图像,你可以试试这个
pnl001.BackImageUrl = @"D:/mayur.jpeg";