Click here to Skip to main content
15,886,919 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to resize the ContentPlaceHolder of a MasterPage in Child(.aspx) Page? Pin
mcmilan29-Jul-08 18:40
mcmilan29-Jul-08 18:40 
QuestionFile Upload error on live site. Pin
JimBob SquarePants29-Jul-08 18:33
JimBob SquarePants29-Jul-08 18:33 
AnswerRe: File Upload error on live site. Pin
Venkatesh Mookkan29-Jul-08 18:50
Venkatesh Mookkan29-Jul-08 18:50 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants29-Jul-08 19:03
JimBob SquarePants29-Jul-08 19:03 
AnswerRe: File Upload error on live site. Pin
Anand Desai29-Jul-08 19:14
Anand Desai29-Jul-08 19:14 
GeneralRe: File Upload error on live site. Pin
Venkatesh Mookkan29-Jul-08 19:16
Venkatesh Mookkan29-Jul-08 19:16 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants29-Jul-08 22:52
JimBob SquarePants29-Jul-08 22:52 
GeneralRe: File Upload error on live site. Pin
Venkatesh Mookkan30-Jul-08 0:17
Venkatesh Mookkan30-Jul-08 0:17 
JimBob SquarePants wrote:
' convert the fileupload.postedfile to system.data.linq.binary Dim source As FileInfo = New FileInfo(FileName) Dim buffer() As Byte = New Byte(photoFileUpload.PostedFile.ContentLength - 1) {}


This is very wrong way of getting the bytes of uploaded file. What you are trying is, you are getting the filename and trying to get the bytes of invalid file in the server.


Dim FileSize As Integer = 0
FileSize = fileUpload.PostedFile.ContentLength
Dim FileData(FileSize) As Byte
fileUpload.PostedFile.InputStream.Read(buffer, 0, FileSize)


Now you will get the bytes of the selected file.


Castle Rider
What if I freeze??? Don't forget to breath...

My: Website | Yahoo Group | Blog Spot

modified on Wednesday, July 30, 2008 7:12 AM

GeneralRe: File Upload error on live site. Pin
JimBob SquarePants30-Jul-08 1:31
JimBob SquarePants30-Jul-08 1:31 
GeneralRe: File Upload error on live site. Pin
Venkatesh Mookkan30-Jul-08 2:12
Venkatesh Mookkan30-Jul-08 2:12 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants30-Jul-08 4:03
JimBob SquarePants30-Jul-08 4:03 
GeneralRe: File Upload error on live site. Pin
Venkatesh Mookkan30-Jul-08 17:50
Venkatesh Mookkan30-Jul-08 17:50 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants31-Jul-08 3:17
JimBob SquarePants31-Jul-08 3:17 
AnswerRe: File Upload error on live site. Pin
Imran Khan Pathan29-Jul-08 20:00
Imran Khan Pathan29-Jul-08 20:00 
AnswerRe: File Upload error on live site. Pin
Anand Desai29-Jul-08 20:13
Anand Desai29-Jul-08 20:13 
QuestionDetermine if transaction is successful [modified] Pin
ASPnoob29-Jul-08 15:52
ASPnoob29-Jul-08 15:52 
AnswerRe: Determine if transaction is successful Pin
Christian Graus29-Jul-08 17:49
protectorChristian Graus29-Jul-08 17:49 
GeneralRe: Determine if transaction is successful Pin
Mogaambo29-Jul-08 18:37
Mogaambo29-Jul-08 18:37 
GeneralRe: Determine if transaction is successful Pin
Christian Graus29-Jul-08 20:08
protectorChristian Graus29-Jul-08 20:08 
QuestionChameleon Experience Pin
Aslesh29-Jul-08 5:06
Aslesh29-Jul-08 5:06 
QuestionAn error has occurred while establishing a connection to the server Pin
attalurisubbu29-Jul-08 3:42
attalurisubbu29-Jul-08 3:42 
AnswerRe: An error has occurred while establishing a connection to the server Pin
eyeseetee29-Jul-08 4:19
eyeseetee29-Jul-08 4:19 
AnswerRe: An error has occurred while establishing a connection to the server Pin
Christian Graus29-Jul-08 12:40
protectorChristian Graus29-Jul-08 12:40 
Questionajax dual slider control asp.net c# 2.0 Pin
VijayVishwakarma29-Jul-08 2:33
VijayVishwakarma29-Jul-08 2:33 
AnswerRe: ajax dual slider control asp.net c# 2.0 Pin
VijayVishwakarma29-Jul-08 22:03
VijayVishwakarma29-Jul-08 22:03 

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.