Click here to Skip to main content
14,659,002 members
Home » Discussions » ASP.NET
   

ASP.NET

 
Questiontrying to get some measurement data to ASP from Microsoft SQL? Pin
auting824-Oct-20 11:07
Memberauting824-Oct-20 11:07 
AnswerRe: trying to get some measurement data to ASP from Microsoft SQL? Pin
Richard Deeming5-Oct-20 2:53
mveRichard Deeming5-Oct-20 2:53 
QuestionComplex View Model with Nested Item List / ModelState Pin
Guillermo Perez18-Sep-20 15:49
MemberGuillermo Perez18-Sep-20 15:49 
AnswerRe: Complex View Model with Nested Item List / ModelState Pin
Richard Deeming27-Sep-20 22:21
mveRichard Deeming27-Sep-20 22:21 
QuestionFireFox Upload Images Pin
Member 105489774-Sep-20 6:23
MemberMember 105489774-Sep-20 6:23 
AnswerRe: FireFox Upload Images Pin
Richard Deeming6-Sep-20 23:09
mveRichard Deeming6-Sep-20 23:09 
GeneralRe: FireFox Upload Images Pin
Member 1054897717-Sep-20 5:31
MemberMember 1054897717-Sep-20 5:31 
GeneralRe: FireFox Upload Images Pin
Richard Deeming17-Sep-20 9:06
mveRichard Deeming17-Sep-20 9:06 
You mentioned uploading the images, which suggests to me that this is a web application.

You cannot use the FileName property of the FileUpload control to access the file. It returns the path - or sometimes just the name - of the file on the client. That file will not be accessible on the server, where your code is running.

It might appear to work when you debug your code in Visual Studio. But that's only because, in that specific cast, the server and client are the same computer. Once you deploy to a real server, your code will stop working.

Either use the SaveAs method to save the uploaded file to the server, or use the InputStream property to read the content of the uploaded file.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: FireFox Upload Images Pin
Member 1054897718-Sep-20 5:48
MemberMember 1054897718-Sep-20 5:48 
GeneralRe: FireFox Upload Images Pin
Richard Deeming20-Sep-20 23:40
mveRichard Deeming20-Sep-20 23:40 
GeneralRe: FireFox Upload Images Pin
Member 1054897717-Sep-20 5:36
MemberMember 1054897717-Sep-20 5:36 
GeneralRe: FireFox Upload Images Pin
Member 1054897718-Sep-20 5:29
MemberMember 1054897718-Sep-20 5:29 
QuestionShow DataTable in Json Pin
Member 149089644-Sep-20 0:20
MemberMember 149089644-Sep-20 0:20 
AnswerRe: Show DataTable in Json Pin
F-ES Sitecore4-Sep-20 2:43
mveF-ES Sitecore4-Sep-20 2:43 
GeneralRe: Show DataTable in Json Pin
Member 1490896421-Sep-20 1:48
MemberMember 1490896421-Sep-20 1:48 
GeneralRe: Show DataTable in Json Pin
F-ES Sitecore21-Sep-20 1:51
mveF-ES Sitecore21-Sep-20 1:51 
GeneralRe: Show DataTable in Json Pin
Member 1490896421-Sep-20 3:47
MemberMember 1490896421-Sep-20 3:47 
GeneralRe: Show DataTable in Json Pin
Richard Deeming21-Sep-20 4:20
mveRichard Deeming21-Sep-20 4:20 
QuestionHotel ERP system Pin
Member 1492170724-Aug-20 4:36
MemberMember 1492170724-Aug-20 4:36 
AnswerRe: Hotel ERP system Pin
Richard Deeming24-Aug-20 4:52
mveRichard Deeming24-Aug-20 4:52 
AnswerRe: Hotel ERP system Pin
Mycroft Holmes24-Aug-20 12:22
professionalMycroft Holmes24-Aug-20 12:22 
GeneralRe: Hotel ERP system Pin
CHill604-Sep-20 0:37
mveCHill604-Sep-20 0:37 
AnswerRe: Hotel ERP system Pin
Eddy Vluggen24-Aug-20 12:39
professionalEddy Vluggen24-Aug-20 12:39 
Question.Net Core 3.2 Controller, using route and HttpGet attribute with CreatedAtRoute Pin
jkirkerx19-Aug-20 8:39
professionaljkirkerx19-Aug-20 8:39 
AnswerRe: .Net Core 3.2 Controller, using route and HttpGet attribute with CreatedAtRoute Pin
jkirkerx19-Aug-20 10:04
professionaljkirkerx19-Aug-20 10:04 

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.