Click here to Skip to main content
15,887,872 members
Home / Discussions / C#
   

C#

 
AnswerRe: Accessing the default application folder Pin
Martin#25-Jun-07 3:59
Martin#25-Jun-07 3:59 
AnswerRe: Accessing the default application folder Pin
Dave Kreskowiak25-Jun-07 4:35
mveDave Kreskowiak25-Jun-07 4:35 
GeneralRe: Accessing the default application folder Pin
led mike25-Jun-07 4:44
led mike25-Jun-07 4:44 
GeneralRe: Accessing the default application folder Pin
Dave Kreskowiak25-Jun-07 5:05
mveDave Kreskowiak25-Jun-07 5:05 
QuestionEfficient way to check if web resource/file exists? Pin
Dominic Pettifer25-Jun-07 2:43
Dominic Pettifer25-Jun-07 2:43 
AnswerRe: Efficient way to check if web resource/file exists? [modified] Pin
I.explore.code25-Jun-07 3:25
I.explore.code25-Jun-07 3:25 
GeneralRe: Efficient way to check if web resource/file exists? Pin
User 665825-Jun-07 3:28
User 665825-Jun-07 3:28 
AnswerRe: Efficient way to check if web resource/file exists? Pin
I.explore.code25-Jun-07 19:49
I.explore.code25-Jun-07 19:49 
Your question is very vague..why do you need to write the code to check for file existence on some other web server ? Its a built in thing, if u request for a non-existent page, the logic on that server will automatically handle the request and show you an error page. However, if u wanna do this for your own server you can, using the below given code.

if (File.Exists(Server.MapPath("web.gif")))
{
Response.Write("File Exists");
}
else
{
Response.Redirect("FileNotFound.htm");
}

This code will map the virtual path of your server so if some client browser requests for a file that does not exist on your web server, he will get an error page other wise the page will load, now it depends on you how you customize the application for your clients.
GeneralRe: Efficient way to check if web resource/file exists? Pin
Dominic Pettifer25-Jun-07 22:03
Dominic Pettifer25-Jun-07 22:03 
Questiondatagrid with row header Pin
Sunshine Always25-Jun-07 2:37
Sunshine Always25-Jun-07 2:37 
QuestionParsing a log file using regular expressions Pin
salon25-Jun-07 2:26
salon25-Jun-07 2:26 
AnswerRe: Parsing a log file using regular expressions Pin
User 665825-Jun-07 3:44
User 665825-Jun-07 3:44 
GeneralRe: Parsing a log file using regular expressions Pin
salon25-Jun-07 4:00
salon25-Jun-07 4:00 
GeneralRe: Parsing a log file using regular expressions Pin
User 665825-Jun-07 4:18
User 665825-Jun-07 4:18 
QuestionWhy causes the change of the Location the change of the size Pin
MarkPhB25-Jun-07 2:24
MarkPhB25-Jun-07 2:24 
Questionhow can I test my FTP application? Pin
Mostafa Siraj25-Jun-07 2:04
Mostafa Siraj25-Jun-07 2:04 
AnswerRe: how can I test my FTP application? Pin
originSH25-Jun-07 2:12
originSH25-Jun-07 2:12 
AnswerRe: how can I test my FTP application? Pin
Carmine_XX25-Jun-07 7:18
Carmine_XX25-Jun-07 7:18 
QuestionT9 dictionary in c# Pin
seeng25-Jun-07 1:43
seeng25-Jun-07 1:43 
AnswerRe: T9 dictionary in c# Pin
Pete O'Hanlon25-Jun-07 1:55
mvePete O'Hanlon25-Jun-07 1:55 
AnswerRe: T9 dictionary in c# Pin
Christian Graus25-Jun-07 2:10
protectorChristian Graus25-Jun-07 2:10 
AnswerRe: T9 dictionary in c# Pin
Pete O'Hanlon25-Jun-07 2:19
mvePete O'Hanlon25-Jun-07 2:19 
AnswerRe: T9 dictionary in c# Pin
Dave Kreskowiak25-Jun-07 4:47
mveDave Kreskowiak25-Jun-07 4:47 
GeneralRe: T9 dictionary in c# Pin
Not Active25-Jun-07 5:11
mentorNot Active25-Jun-07 5:11 
AnswerRe: T9 dictionary in c# Pin
Dan Neely25-Jun-07 5:21
Dan Neely25-Jun-07 5:21 

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.