Click here to Skip to main content
15,920,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to Bind the Custom Validator to GridView Control Pin
eyeseetee23-May-08 1:24
eyeseetee23-May-08 1:24 
GeneralRe: how to Bind the Custom Validator to GridView Control Pin
Johndas23-May-08 1:30
Johndas23-May-08 1:30 
Questionpassword field Pin
eyeseetee22-May-08 23:58
eyeseetee22-May-08 23:58 
AnswerRe: password field Pin
N a v a n e e t h23-May-08 0:06
N a v a n e e t h23-May-08 0:06 
GeneralRe: password field Pin
eyeseetee23-May-08 0:53
eyeseetee23-May-08 0:53 
GeneralRe: password field Pin
eyeseetee23-May-08 0:58
eyeseetee23-May-08 0:58 
GeneralRe: password field Pin
N a v a n e e t h23-May-08 2:41
N a v a n e e t h23-May-08 2:41 
QuestionWeb Service, how to get local path Pin
blackjack215022-May-08 23:50
blackjack215022-May-08 23:50 
It's the first time I'm dealing with programming a web service. I want to write a method that allows the client to download some files. I created a new folder called 'myFiles' in the Web Service solution.

The web method is this:
[WebMethod]
    public byte[] downloadFile()
    {                
        FileStream fs = new FileStream("myFiles\\aaa.txt", FileMode.Open);
        byte[] contents = new byte[fs.Length];
        fs.Read(contents, 0, (int)fs.Length);

        return contents;    
    }


When I test the function, I get the error:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\myFiles\aaa.xls'.

Why is it looking fot the myFiles folder there. How do I point it to the local folder of the web service application?

Thanks.
AnswerRe: Web Service, how to get local path Pin
N a v a n e e t h23-May-08 0:13
N a v a n e e t h23-May-08 0:13 
GeneralRe: Web Service, how to get local path Pin
blackjack215023-May-08 0:21
blackjack215023-May-08 0:21 
QuestionDetailView Paging Pin
jason_mf22-May-08 21:41
jason_mf22-May-08 21:41 
AnswerRe: DetailView Paging Pin
Herman<T>.Instance22-May-08 23:29
Herman<T>.Instance22-May-08 23:29 
QuestionJavascript [modified] Pin
senthilsstil22-May-08 21:24
senthilsstil22-May-08 21:24 
AnswerRe: Javascript Pin
eyeseetee22-May-08 21:28
eyeseetee22-May-08 21:28 
GeneralRe: Javascript Pin
senthilsstil22-May-08 21:39
senthilsstil22-May-08 21:39 
Questionreplace and trim function in .net 2.0 Pin
trilokharry22-May-08 21:08
trilokharry22-May-08 21:08 
AnswerRe: replace and trim function in .net 2.0 Pin
Christian Graus22-May-08 21:12
protectorChristian Graus22-May-08 21:12 
AnswerRe: replace and trim function in .net 2.0 Pin
N a v a n e e t h22-May-08 21:15
N a v a n e e t h22-May-08 21:15 
GeneralRe: replace and trim function in .net 2.0 Pin
trilokharry22-May-08 21:45
trilokharry22-May-08 21:45 
GeneralRe: replace and trim function in .net 2.0 Pin
trilokharry22-May-08 22:15
trilokharry22-May-08 22:15 
GeneralRe: replace and trim function in .net 2.0 Pin
Laddie22-May-08 23:25
Laddie22-May-08 23:25 
QuestionHo to write itemdatabound event in datalist Pin
nizamuddin22-May-08 21:05
nizamuddin22-May-08 21:05 
AnswerRe: Ho to write itemdatabound event in datalist Pin
eyeseetee22-May-08 21:20
eyeseetee22-May-08 21:20 
QuestionImporting Contacts from Mail Clients in ASP&gt;net Pin
sukkureddy22-May-08 20:30
sukkureddy22-May-08 20:30 
AnswerRe: Importing Contacts from Mail Clients in ASP&gt;net Pin
Krazy Programmer22-May-08 20:42
Krazy Programmer22-May-08 20:42 

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.