Reg IIS
-
U had suggested me to right click on the image and check the path. I had tried it but it didnt work. My prog is running on local host so the num ber keeps changing so how can i run the program. this was the path which was poping up on selecting the image. Friends please help me . http://localhost:49216/ws/App\_Data/pics/pic1.jpg In asp.net this is the coding which i have provided asp:TableCell ID="TableCell4" ColumnSpan ="2" VerticalAlign = "Top" HorizontalAlign ="Center" runat ="server">
-
U had suggested me to right click on the image and check the path. I had tried it but it didnt work. My prog is running on local host so the num ber keeps changing so how can i run the program. this was the path which was poping up on selecting the image. Friends please help me . http://localhost:49216/ws/App\_Data/pics/pic1.jpg In asp.net this is the coding which i have provided asp:TableCell ID="TableCell4" ColumnSpan ="2" VerticalAlign = "Top" HorizontalAlign ="Center" runat ="server">
sowjanya3 wrote:
ImageUrl="../../../../../App_Data/pics/pic1.jpg" />
Why are you making the path relative to the page it's on instead of relative to the root of your application? i.e. File A is at \images\a.jpg So in your ImageURL you make it referenced as "/images/a.jpg" Edit: Also your thread title is misleading. This has nothing to do with IIS or using regiis.
modified on Thursday, April 1, 2010 6:04 AM
-
U had suggested me to right click on the image and check the path. I had tried it but it didnt work. My prog is running on local host so the num ber keeps changing so how can i run the program. this was the path which was poping up on selecting the image. Friends please help me . http://localhost:49216/ws/App\_Data/pics/pic1.jpg In asp.net this is the coding which i have provided asp:TableCell ID="TableCell4" ColumnSpan ="2" VerticalAlign = "Top" HorizontalAlign ="Center" runat ="server">
Don't Put Images is App_Data Folder. AFAIK,
It won't be displayed from App_Data, Due to Security Reason.
Just create a folder called Images in your Application Folder and store the images over there. Use Server.MapPath() to findout the actual url of images. Hope this will help you. Let me know if you have any more issue. ThanksCheers ! Abhijit Codeproject MVP
-
Don't Put Images is App_Data Folder. AFAIK,
It won't be displayed from App_Data, Due to Security Reason.
Just create a folder called Images in your Application Folder and store the images over there. Use Server.MapPath() to findout the actual url of images. Hope this will help you. Let me know if you have any more issue. ThanksCheers ! Abhijit Codeproject MVP
Hey Abhiji, even though App_Data is not visible from the user end, you can still use it data putting you data files inside. I haven't tried with image files. But I used to places all my xml files inside App_Data which is accessible for the developer/coder.
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot
-
Hey Abhiji, even though App_Data is not visible from the user end, you can still use it data putting you data files inside. I haven't tried with image files. But I used to places all my xml files inside App_Data which is accessible for the developer/coder.
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot
Yes. App_Data is storage for files like Mdf, XML etc. The real advantage is that any file you place in
App_Data won't be downloadable
. Those file can be accessable by developer/Coder but not from outside, because these are not downloadable. This is the reason I guess Image not showing, as they get downloaded. Please share your input.Cheers ! Abhijit Codeproject MVP
-
Yes. App_Data is storage for files like Mdf, XML etc. The real advantage is that any file you place in
App_Data won't be downloadable
. Those file can be accessable by developer/Coder but not from outside, because these are not downloadable. This is the reason I guess Image not showing, as they get downloaded. Please share your input.Cheers ! Abhijit Codeproject MVP
Yeah. You are right. I just tried with a simple sample. The image in the App_Data is inaccessible. Good to know.
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot
-
sowjanya3 wrote:
ImageUrl="../../../../../App_Data/pics/pic1.jpg" />
Why are you making the path relative to the page it's on instead of relative to the root of your application? i.e. File A is at \images\a.jpg So in your ImageURL you make it referenced as "/images/a.jpg" Edit: Also your thread title is misleading. This has nothing to do with IIS or using regiis.
modified on Thursday, April 1, 2010 6:04 AM