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 Web サイトにパネルがあります
そして、私はこのように実行時に画像を追加しようとしています
ASPX
<asp:Panel ID="pnl001" runat="server" Height="300px" Width="1174px" > </asp:Panel>
コードビハインド
pnl001.BackImageUrl = "D:/mayur.jpeg"
助けてください。ありがとう!
コードビハインドからパネルの背景画像を設定したい場合は、これを試すことができます
pnl001.BackImageUrl = @"D:/mayur.jpeg";