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

ASP.NET

 
QuestionSession Checking In Class File Pin
N a v a n e e t h3-Aug-07 22:58
N a v a n e e t h3-Aug-07 22:58 
AnswerRe: Session Checking In Class File Pin
Nicejith4-Aug-07 0:35
Nicejith4-Aug-07 0:35 
GeneralRe: Session Checking In Class File Pin
N a v a n e e t h4-Aug-07 0:43
N a v a n e e t h4-Aug-07 0:43 
AnswerRe: Session Checking In Class File Pin
_mubashir4-Aug-07 0:41
_mubashir4-Aug-07 0:41 
GeneralRe: Session Checking In Class File Pin
N a v a n e e t h4-Aug-07 0:47
N a v a n e e t h4-Aug-07 0:47 
QuestionDisplaying Binary data with Response.Write() [modified] Pin
ASPnoob3-Aug-07 22:19
ASPnoob3-Aug-07 22:19 
AnswerRe: Displaying Binary data with Response.Write() Pin
Christian Graus3-Aug-07 22:24
protectorChristian Graus3-Aug-07 22:24 
GeneralRe: Displaying Binary data with Response.Write() [modified] Pin
ASPnoob3-Aug-07 22:54
ASPnoob3-Aug-07 22:54 
Basically I'm doing what you've suggested last week. First I stored the mime types of each binary file in a field called DocType in my database. So if an image file is stored in the Resumes field it would have a mime type of "image/gif" etc. Then after I connect to the database I use the datareader to read the data then put the data into a byte array. Then I use the following two lines to determine the name of the file to be displayed and to determine its content type.
'Resumes is the field in the database table that holds the documents
               Response.AddHeader("Content-Disposition", "attachment;filename=Resumes")

               'DocType is the field that holds the mime types
               Response.ContentType = DirectCast(AD("DocType"), String)

I have a typo in my code and its "filename=ResType" I've already changed that to Resume. Don't you run away after giving just a vague response Christian 'cause I really need your help lol. When a list item is selected its suppose to show a file but its not working, I'm very frustrated right now. Thanks for replying







-- modified at 5:29 Saturday 4th August, 2007
GeneralRe: Displaying Binary data with Response.Write() Pin
Christian Graus4-Aug-07 0:45
protectorChristian Graus4-Aug-07 0:45 
QuestionOut of memory or system resources problem Pin
pjc*3-Aug-07 22:14
pjc*3-Aug-07 22:14 
QuestionImage gallery Pin
Vipin.d3-Aug-07 21:28
Vipin.d3-Aug-07 21:28 
AnswerRe: Image gallery Pin
Christian Graus3-Aug-07 21:30
protectorChristian Graus3-Aug-07 21:30 
GeneralRe: Image gallery Pin
Vipin.d3-Aug-07 22:37
Vipin.d3-Aug-07 22:37 
GeneralRe: Image gallery Pin
Christian Graus4-Aug-07 0:44
protectorChristian Graus4-Aug-07 0:44 
GeneralRe: Image gallery Pin
Vipin.d4-Aug-07 1:25
Vipin.d4-Aug-07 1:25 
AnswerRe: Image gallery Pin
sulabh20203-Aug-07 21:47
sulabh20203-Aug-07 21:47 
GeneralRe: Image gallery Pin
Vipin.d3-Aug-07 22:40
Vipin.d3-Aug-07 22:40 
GeneralRe: Image gallery Pin
Christian Graus4-Aug-07 0:46
protectorChristian Graus4-Aug-07 0:46 
AnswerRe: Image gallery Pin
Vipin.d4-Aug-07 2:45
Vipin.d4-Aug-07 2:45 
QuestionDatabase Connectivity !! Pin
shweta@syscom3-Aug-07 20:23
shweta@syscom3-Aug-07 20:23 
AnswerRe: Database Connectivity !! Pin
Christian Graus3-Aug-07 21:20
protectorChristian Graus3-Aug-07 21:20 
AnswerRe: Database Connectivity !! [modified] Pin
manowj3-Aug-07 21:21
manowj3-Aug-07 21:21 
GeneralRe: Database Connectivity !! Pin
Christian Graus3-Aug-07 21:30
protectorChristian Graus3-Aug-07 21:30 
AnswerRe: Database Connectivity !! [modified] Pin
sulabh20203-Aug-07 21:52
sulabh20203-Aug-07 21:52 
GeneralRe: Database Connectivity !! Pin
Christian Graus3-Aug-07 22:01
protectorChristian Graus3-Aug-07 22:01 

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.