Web 構成ファイルからパス文字列を取得し、それとファイル名を使用して、必要な画像の URL を取得しようとしています。私はそれが次のようなものであるべきだと思います:
<asp:Image ImageUrl ='<%# System.Configuration.ConfigurationManager.AppSettings["AppPath"] + "&Images/headerbk01.jpg"%>' runat ="server" width="983" height="265" />
これにより、ソースの空の文字列が得られます。
編集:
今これを使用して:
<asp:Image ImageUrl ='<%=System.Configuration.ConfigurationManager.AppSettings["AppPath"]+"&Images/headerbk01.jpg"%>' runat ="server" width="983" height="265" />
これをhtmlとして生成します:
<img style="width: 983px; height: 265px;" src="<=System.Configuration.ConfigurationManager.AppSettings["AppPath"]+"&Images/headerbk01.jpg"%>"/>