I have developed a web application on Visual studio with ASP.NET and C#.
I am using master and child pages
I am able to view the image when running the studio on the local server but not able to view it on the webserver from the child (content) page
On aspx page the code is
<asp:Image ID="imgApplPhoto" runat="server" Height="125px" Width="124px" />
The code (c#) is
imgApplPhoto.ImageUrl = MapPath("~/App_UserPhotos/
") + strtempfn;
I have seen the source in the webpage to identify the reason for non-display of image
<img id="Main_imgApplPhoto" src="D:\HostingSpaces\suhi
AS expected in master and content pages, the image id on the client page is changed Main_imgApplPhoto from its original id imgApplPhoto
I do not whether it makes a difference, in the web server, the web application is a sub-domain accessed with URL
One may wish to login using credentials for a temporary user
user ID: student2
It is the first page after login i.e. userswitchboard.aspx
Can anyone resolve the issue?