Click here to Skip to main content
15,888,579 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionUsing Ajax services for grid editing/inserting Pin
tonymathewt11-Nov-09 18:11
professionaltonymathewt11-Nov-09 18:11 
QuestionAnswers required for the below interview questions Pin
siddisagar11-Nov-09 17:49
siddisagar11-Nov-09 17:49 
AnswerRe: Answers required for the below interview questions Pin
Aman Bhullar11-Nov-09 18:05
Aman Bhullar11-Nov-09 18:05 
GeneralRe: Answers required for the below interview questions Pin
Gaurav Dudeja India11-Nov-09 22:12
Gaurav Dudeja India11-Nov-09 22:12 
AnswerRe: Answers required for the below interview questions Pin
Christian Graus11-Nov-09 20:11
protectorChristian Graus11-Nov-09 20:11 
AnswerRe: Answers required for the below interview questions Pin
Shameel12-Nov-09 7:09
professionalShameel12-Nov-09 7:09 
QuestionASP.NET: How to refresh Saved Crystal Report to latest data? Help needed. Pin
ssmaran11-Nov-09 17:41
ssmaran11-Nov-09 17:41 
QuestionProblem with file path Pin
Maxdd 711-Nov-09 15:43
Maxdd 711-Nov-09 15:43 
I'm trying to use a upload form to read a file. The problem is, I cant access full path of the file so I can read wherever he is.

The form is something like this:

<form id="Form1" enctype="multipart/form-data" runat="server">
<tr>
  <td>Escolha ficheiro:</td>
  <td><input id="upl" type="file" runat="server"></td>
</tr>
<tr>
  <td colspan="2">
  <input type="button" id="upload" value="Inserir" 
                    OnServerClick="uploadClick" runat="server">
  </td>
</tr>
</form>


The problem its here:

string path;
     path = upl.Value;
    Response.Write(path);


Using VS 2008 I can see that when I use "Value" I am "acessing full file path on client's computer". Its exactly what I want but I'm getting on the output just the name of the file. Its very strange because also when I browse the file the textfield shows the full path. Also, if I change the type="file" to type="text" and then I input the path manually, everything works right.

What am I doing wrong?
AnswerRe: Problem with file path Pin
Christian Graus11-Nov-09 15:59
protectorChristian Graus11-Nov-09 15:59 
GeneralRe: Problem with file path Pin
Maxdd 711-Nov-09 16:02
Maxdd 711-Nov-09 16:02 
GeneralRe: Problem with file path Pin
Christian Graus11-Nov-09 16:08
protectorChristian Graus11-Nov-09 16:08 
GeneralRe: Problem with file path Pin
Maxdd 711-Nov-09 16:16
Maxdd 711-Nov-09 16:16 
GeneralRe: Problem with file path Pin
Christian Graus11-Nov-09 16:20
protectorChristian Graus11-Nov-09 16:20 
GeneralRe: Problem with file path Pin
Maxdd 711-Nov-09 17:11
Maxdd 711-Nov-09 17:11 
GeneralRe: Problem with file path Pin
Christian Graus11-Nov-09 20:08
protectorChristian Graus11-Nov-09 20:08 
GeneralRe: Problem with file path [modified] Pin
Maxdd 712-Nov-09 6:57
Maxdd 712-Nov-09 6:57 
QuestionSame page, different access - use Sessions? Pin
Maxdd 711-Nov-09 9:28
Maxdd 711-Nov-09 9:28 
AnswerRe: Same page, different access - use Sessions? Pin
Christian Graus11-Nov-09 9:30
protectorChristian Graus11-Nov-09 9:30 
GeneralRe: Same page, different access - use Sessions? Pin
Maxdd 711-Nov-09 9:45
Maxdd 711-Nov-09 9:45 
GeneralRe: Same page, different access - use Sessions? Pin
Christian Graus11-Nov-09 9:49
protectorChristian Graus11-Nov-09 9:49 
GeneralRe: Same page, different access - use Sessions? Pin
Maxdd 711-Nov-09 9:55
Maxdd 711-Nov-09 9:55 
GeneralRe: Same page, different access - use Sessions? Pin
Christian Graus11-Nov-09 10:12
protectorChristian Graus11-Nov-09 10:12 
GeneralCode behind .aspx.cs Pin
David Mujica11-Nov-09 9:53
David Mujica11-Nov-09 9:53 
AnswerRe: Same page, different access - use Sessions? Pin
David Mujica11-Nov-09 9:34
David Mujica11-Nov-09 9:34 
GeneralRe: Same page, different access - use Sessions? Pin
Maxdd 711-Nov-09 9:58
Maxdd 711-Nov-09 9:58 

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.