Click here to Skip to main content
16,005,697 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralCannot bind to the new display member. Pin
Cuckoo10-Feb-08 23:08
Cuckoo10-Feb-08 23:08 
GeneralRe: Cannot bind to the new display member. Pin
Venkatesh Mookkan10-Feb-08 23:28
Venkatesh Mookkan10-Feb-08 23:28 
GeneralSystem.Drawing.Image to System.web.UI.Image Pin
VanithaVasu10-Feb-08 22:42
VanithaVasu10-Feb-08 22:42 
GeneralRe: System.Drawing.Image to System.web.UI.Image Pin
Piyush Vardhan Singh10-Feb-08 22:56
Piyush Vardhan Singh10-Feb-08 22:56 
GeneralRe: System.Drawing.Image to System.web.UI.Image Pin
Venkatesh Mookkan10-Feb-08 23:36
Venkatesh Mookkan10-Feb-08 23:36 
GeneralRe: System.Drawing.Image to System.web.UI.Image [modified] Pin
VanithaVasu11-Feb-08 0:08
VanithaVasu11-Feb-08 0:08 
GeneralRe: System.Drawing.Image to System.web.UI.Image Pin
Venkatesh Mookkan11-Feb-08 0:32
Venkatesh Mookkan11-Feb-08 0:32 
GeneralRe: System.Drawing.Image to System.web.UI.Image Pin
Aurelius166412-Feb-08 3:04
Aurelius166412-Feb-08 3:04 
You would have to create a seperate page or preferable an http handler for you image. You would set the image url on your tree view to this page with, for example, a query string parameter identifying the image in the database to be retrieved.

e.g. ImageUrl = "MyImagePage.aspx?ImageId=XX";

Then inside your MyImagePage.aspx you would write some code along the lines of that shown below. Note: You must make sure no other content is sent down along with the bytes i.e. no html in the code infront if you use an aspx page (which is one reason why a handler would be better).

// Get image bytes from database based on query string<br />
byte[] abImageData = (byte[])command.ExecuteScalar();<br />
<br />
// Write image to stream<br />
Response.ContentType = "image/jpeg";<br />
Response.Write(abImageData);<br />
Response.End();

QuestionFiltering gridview data by column name in dropdown.......... Pin
pranavcool10-Feb-08 22:27
pranavcool10-Feb-08 22:27 
QuestionProblem with WebConfig File Pin
varshavmane10-Feb-08 22:05
varshavmane10-Feb-08 22:05 
Generalselecting the items from dynamically generated radion button list controls Pin
rameshdontagani10-Feb-08 21:13
rameshdontagani10-Feb-08 21:13 
GeneralRe: selecting the items from dynamically generated radion button list controls Pin
Abhijit Jana10-Feb-08 22:05
professionalAbhijit Jana10-Feb-08 22:05 
GeneralRe: selecting the items from dynamically generated radion button list controls Pin
Sun Rays11-Feb-08 0:09
Sun Rays11-Feb-08 0:09 
GeneralRe: selecting the items from dynamically generated radion button list controls Pin
rameshdontagani11-Feb-08 0:26
rameshdontagani11-Feb-08 0:26 
GeneralRe: selecting the items from dynamically generated radion button list controls Pin
Paddy Boyd11-Feb-08 0:44
Paddy Boyd11-Feb-08 0:44 
GeneralThe request failed with HTTP status 404: Not Found. Pin
shabi uz zaman10-Feb-08 19:52
shabi uz zaman10-Feb-08 19:52 
GeneralRe: The request failed with HTTP status 404: Not Found. Pin
Venkatesh Mookkan10-Feb-08 20:44
Venkatesh Mookkan10-Feb-08 20:44 
QuestionIIS using external IP Address Pin
Muammar©10-Feb-08 19:50
Muammar©10-Feb-08 19:50 
AnswerRe: IIS using external IP Address Pin
Venkatesh Mookkan10-Feb-08 20:48
Venkatesh Mookkan10-Feb-08 20:48 
GeneralRe: IIS using external IP Address Pin
Muammar©10-Feb-08 21:01
Muammar©10-Feb-08 21:01 
NewsRe: IIS using external IP Address Pin
Venkatesh Mookkan10-Feb-08 21:43
Venkatesh Mookkan10-Feb-08 21:43 
GeneralRe: IIS using external IP Address Pin
Muammar©10-Feb-08 22:24
Muammar©10-Feb-08 22:24 
GeneralRe: IIS using external IP Address Pin
Venkatesh Mookkan10-Feb-08 23:26
Venkatesh Mookkan10-Feb-08 23:26 
GeneralRe: IIS using external IP Address Pin
Muammar©10-Feb-08 23:41
Muammar©10-Feb-08 23:41 
GeneralRe: IIS using external IP Address Pin
Venkatesh Mookkan11-Feb-08 0:10
Venkatesh Mookkan11-Feb-08 0:10 

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.