Click here to Skip to main content
15,881,089 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How Do I Get the ASPNet Login Role for the user logged in? Pin
Not Active30-Mar-11 7:09
mentorNot Active30-Mar-11 7:09 
Questionswf file not getting displayed in chrome Pin
raghvendrapanda30-Mar-11 0:01
raghvendrapanda30-Mar-11 0:01 
Questioncursor in the textbox is blinking very fast Pin
raghvendrapanda29-Mar-11 20:34
raghvendrapanda29-Mar-11 20:34 
Questionpaas MinimumPrefixLength value of ajax autocompleter from code behind Pin
raghvendrapanda29-Mar-11 20:00
raghvendrapanda29-Mar-11 20:00 
QuestionI want to play avi file continually. Pin
buffering8329-Mar-11 19:01
buffering8329-Mar-11 19:01 
AnswerRe: I want to play avi file continually. Pin
Gaurav K Singh29-Mar-11 19:58
Gaurav K Singh29-Mar-11 19:58 
GeneralRe: I want to play avi file continually. Pin
buffering8329-Mar-11 20:16
buffering8329-Mar-11 20:16 
QuestionCan not display Image [modified] Pin
Orcun Iyigun29-Mar-11 7:22
Orcun Iyigun29-Mar-11 7:22 
Hello all,

I am trying to display a jpg image but I am unable to view it in browser.
I am trying to load the image from a folder but when i run the program inside the picture box i see cant see the image, the thing i can see is a small icon of a bmp image. My code is like that;

string unid = "81625517981";
            BarcodeLib.Barcode barcode = new BarcodeLib.Barcode();
            barcode.IncludeLabel = true;
            barcode.Encode(BarcodeLib.TYPE.CODE39, unid, Color.Black, Color.White, 196, 96);
            barcode.SaveImage("C:\\BarcodeLabels\\" + unid + ".jpg", SaveTypes.JPG);
            string imageFilePath = "C:\\BarcodeLabels\\" + unid + ".jpg";
            ImageBarcode.ImageUrl = imageFilePath;  


I also added the following to my web.config file under the file, which according to the docs should grant anybody access to the images folder whether they have logged in or not:

<!-- This section gives the unauthenticated user access to all of the files that are stored in the images folder. -->
<location path="images">
<system.web>
<authorization>
<allow users ="*" />
</authorization>
</system.web>
</location>

can you please tell me what I am missing ?

modified on Tuesday, March 29, 2011 2:16 PM

AnswerRe: Can not display Image Pin
Dalek Dave29-Mar-11 7:30
professionalDalek Dave29-Mar-11 7:30 
GeneralRe: Can not display Image Pin
Orcun Iyigun29-Mar-11 7:48
Orcun Iyigun29-Mar-11 7:48 
GeneralRe: Can not display Image Pin
Dalek Dave29-Mar-11 8:14
professionalDalek Dave29-Mar-11 8:14 
GeneralRe: Can not display Image Pin
Orcun Iyigun29-Mar-11 8:22
Orcun Iyigun29-Mar-11 8:22 
GeneralRe: Can not display Image Pin
gavindon29-Mar-11 8:27
gavindon29-Mar-11 8:27 
GeneralRe: Can not display Image Pin
Pete O'Hanlon29-Mar-11 8:55
mvePete O'Hanlon29-Mar-11 8:55 
GeneralRe: Can not display Image Pin
gavindon29-Mar-11 8:58
gavindon29-Mar-11 8:58 
GeneralRe: Can not display Image Pin
gavindon29-Mar-11 8:30
gavindon29-Mar-11 8:30 
GeneralRe: Can not display Image Pin
Orcun Iyigun29-Mar-11 8:47
Orcun Iyigun29-Mar-11 8:47 
GeneralRe: Can not display Image Pin
gavindon29-Mar-11 8:56
gavindon29-Mar-11 8:56 
GeneralRe: Can not display Image Pin
Orcun Iyigun29-Mar-11 9:03
Orcun Iyigun29-Mar-11 9:03 
AnswerRe: Can not display Image Pin
Pete O'Hanlon29-Mar-11 8:27
mvePete O'Hanlon29-Mar-11 8:27 
GeneralRe: Can not display Image Pin
Dalek Dave29-Mar-11 8:41
professionalDalek Dave29-Mar-11 8:41 
GeneralRe: Can not display Image Pin
gavindon29-Mar-11 8:46
gavindon29-Mar-11 8:46 
GeneralRe: Can not display Image Pin
Dalek Dave29-Mar-11 9:04
professionalDalek Dave29-Mar-11 9:04 
GeneralRe: Can not display Image Pin
Orcun Iyigun29-Mar-11 9:34
Orcun Iyigun29-Mar-11 9:34 
GeneralRe: Can not display Image Pin
Orcun Iyigun29-Mar-11 8:51
Orcun Iyigun29-Mar-11 8:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.