Click here to Skip to main content
15,914,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Converting an ASP.Net Calendar from German to English Pin
Laurence Fineman23-Mar-08 16:47
Laurence Fineman23-Mar-08 16:47 
GeneralRe: Converting an ASP.Net Calendar from German to English Pin
Laurence Fineman23-Mar-08 17:12
Laurence Fineman23-Mar-08 17:12 
QuestionHow to dynamically display picture in the Image control from some hdd folder. Pin
Chesnokov Yuriy23-Mar-08 0:35
professionalChesnokov Yuriy23-Mar-08 0:35 
GeneralRe: How to dynamically display picture in the Image control from some hdd folder. Pin
N a v a n e e t h23-Mar-08 7:25
N a v a n e e t h23-Mar-08 7:25 
QuestionRe: How to dynamically display picture in the Image control from some hdd folder. Pin
Chesnokov Yuriy23-Mar-08 8:13
professionalChesnokov Yuriy23-Mar-08 8:13 
GeneralRe: How to dynamically display picture in the Image control from some hdd folder. Pin
MoustafaS23-Mar-08 8:29
MoustafaS23-Mar-08 8:29 
QuestionRe: How to dynamically display picture in the Image control from some hdd folder. Pin
Chesnokov Yuriy23-Mar-08 21:54
professionalChesnokov Yuriy23-Mar-08 21:54 
GeneralRe: How to dynamically display picture in the Image control from some hdd folder. Pin
N a v a n e e t h23-Mar-08 8:42
N a v a n e e t h23-Mar-08 8:42 
Chesnokov Yuriy wrote:
You can load bitmap from the hdd? can't you.


Yes. But in ASP.NET, images resides in a location where ASP.NET has access can only be loaded. You need to use Server.MapPath(VirtualPath). But it can't access images/files that resides out of the website space.

Chesnokov Yuriy wrote:
For a dummy in ASP.NET how to show that Bitmap then with Image control or any other control on a page at specified location.


You can't set an image/bitmap directly to the image control. You are going to set the handler path, something like /ShowImage.img?name=yourimagename as image URL. You need to register img extension with IIS ISAPI mapping, write a HTTPHandler which can handle this extension. Inside handler, load file to a bitmap and do resizing. Then use your imageobject.Save(HttpContext.Response.OutputStream,imagetype). You need to set the ContentType too.

Hope it helps

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

QuestionRe: How to dynamically display picture in the Image control from some hdd folder. Pin
Chesnokov Yuriy23-Mar-08 21:49
professionalChesnokov Yuriy23-Mar-08 21:49 
GeneralRe: How to dynamically display picture in the Image control from some hdd folder. Pin
N a v a n e e t h23-Mar-08 22:35
N a v a n e e t h23-Mar-08 22:35 
GeneralI'm having a problem with creating dynamic control (dropdown) on client side & accessing that control on code behind. Pin
mujeeb_4m22-Mar-08 23:29
mujeeb_4m22-Mar-08 23:29 
GeneralRe: I'm having a problem with creating dynamic control (dropdown) on client side & accessing that control on code behind. Pin
Christian Graus23-Mar-08 11:40
protectorChristian Graus23-Mar-08 11:40 
QuestionASP.NET Pin
girbudenis22-Mar-08 21:59
girbudenis22-Mar-08 21:59 
GeneralRe: ASP.NET Pin
Pete O'Hanlon23-Mar-08 10:08
mvePete O'Hanlon23-Mar-08 10:08 
QuestionHow to pass data from business logic to data layer Pin
mukkanti00722-Mar-08 20:08
mukkanti00722-Mar-08 20:08 
AnswerRe: How to pass data from business logic to data layer Pin
N a v a n e e t h22-Mar-08 21:18
N a v a n e e t h22-Mar-08 21:18 
GeneralHide gridviewrow and bind sqldatasource to SelectedValue of first visible row Pin
AlexeiXX322-Mar-08 13:27
AlexeiXX322-Mar-08 13:27 
GeneralPassing Querystring Variable into Codebehind to Query The Database Pin
Paul McGann22-Mar-08 12:35
professionalPaul McGann22-Mar-08 12:35 
GeneralRe: Passing Querystring Variable into Codebehind to Query The Database Pin
Declan Bright22-Mar-08 12:43
Declan Bright22-Mar-08 12:43 
GeneralRe: Passing Querystring Variable into Codebehind to Query The Database Pin
Christian Graus22-Mar-08 13:13
protectorChristian Graus22-Mar-08 13:13 
GeneralRe: Passing Querystring Variable into Codebehind to Query The Database Pin
Christian Graus22-Mar-08 13:11
protectorChristian Graus22-Mar-08 13:11 
GeneralRe: Passing Querystring Variable into Codebehind to Query The Database Pin
Paul McGann22-Mar-08 14:53
professionalPaul McGann22-Mar-08 14:53 
QuestionButton click event in user control Pin
indian14322-Mar-08 7:54
indian14322-Mar-08 7:54 
GeneralRe: Button click event in user control Pin
N a v a n e e t h22-Mar-08 8:58
N a v a n e e t h22-Mar-08 8:58 
QuestionRe: Button click event in user control Pin
indian14324-Mar-08 2:33
indian14324-Mar-08 2:33 

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.