Click here to Skip to main content
15,909,332 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How to modify the namespace name? Pin
zhoujun28-Sep-02 13:57
zhoujun28-Sep-02 13:57 
GeneralRe: How to modify the namespace name? Pin
Paul Riley28-Sep-02 14:19
Paul Riley28-Sep-02 14:19 
GeneralRe: How to modify the namespace name? Pin
Martin Haesemeyer28-Sep-02 22:33
Martin Haesemeyer28-Sep-02 22:33 
GeneralRe: How to modify the namespace name? Pin
Martin Haesemeyer28-Sep-02 22:45
Martin Haesemeyer28-Sep-02 22:45 
GeneralRe: How to modify the namespace name? Pin
zhoujun28-Sep-02 23:09
zhoujun28-Sep-02 23:09 
GeneralDeclare Global Constants Pin
sybux200027-Sep-02 7:45
sybux200027-Sep-02 7:45 
GeneralRe: Declare Global Constants Pin
Paul Riley27-Sep-02 8:05
Paul Riley27-Sep-02 8:05 
Questionwrite acces on the server - safe or not? Pin
Rickard Andersson2027-Sep-02 4:02
Rickard Andersson2027-Sep-02 4:02 
I wonder if I have write access on my server and have a page that makes it possible for other people to upload files and other stuff into an XML file, just something.

How can do so only my homepage can upload stuff.. and not You with this kinda code eg.:

Console.Write("\nPlease enter the URI to post data to : ");
         String uriString = Console.ReadLine();

         // Create a new WebClient instance.
         WebClient myWebClient = new WebClient();

         Console.WriteLine("\nPlease enter the fully qualified path of the file to be uploaded to the URI");
         string fileName = Console.ReadLine();
         Console.WriteLine("Uploading {0} to {1} ...",fileName,uriString);                  
         // Upload the file to the URI.
         // The 'UploadFile(uriString,fileName)' method implicitly uses HTTP POST method.
         byte[] responseArray = myWebClient.UploadFile(uriString,fileName);

         // Decode and display the response.
         Console.WriteLine("\nResponse Received.The contents of the file uploaded are: \n{0}",Encoding.ASCII.GetString(responseArray));


It was taken from MSDN Library and what I've figured out is that this code can upload a file to any address, only if it has write access of course!? Am I right?



Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!

UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!

GeneralCustomvalidator, javascript and focus() Pin
Uncle Monkey27-Sep-02 3:05
Uncle Monkey27-Sep-02 3:05 
GeneralRe: Customvalidator, javascript and focus() Pin
Uncle Monkey27-Sep-02 3:08
Uncle Monkey27-Sep-02 3:08 
QuestionError when consuming a web service? Pin
zhoujun26-Sep-02 21:14
zhoujun26-Sep-02 21:14 
AnswerRe: Error when consuming a web service? Pin
SimonS28-Sep-02 4:00
SimonS28-Sep-02 4:00 
GeneralRe: Error when consuming a web service? Pin
zhoujun28-Sep-02 13:59
zhoujun28-Sep-02 13:59 
GeneralCast from string generate exception Pin
sybux200026-Sep-02 10:27
sybux200026-Sep-02 10:27 
GeneralRe: Cast from string generate exception Pin
sybux200026-Sep-02 11:06
sybux200026-Sep-02 11:06 
GeneralProblem with setting style Pin
leppie26-Sep-02 9:08
leppie26-Sep-02 9:08 
QuestionOK wtf is going on? Pin
leppie26-Sep-02 4:39
leppie26-Sep-02 4:39 
AnswerRe: OK wtf is going on? Pin
leppie26-Sep-02 5:04
leppie26-Sep-02 5:04 
GeneralProblem gone Pin
leppie26-Sep-02 8:59
leppie26-Sep-02 8:59 
GeneralSaving Form-data to Database Pin
Knappen26-Sep-02 2:49
Knappen26-Sep-02 2:49 
GeneralRe: Saving Form-data to Database Pin
Richard Deeming26-Sep-02 8:51
mveRichard Deeming26-Sep-02 8:51 
GeneralRe: Saving Form-data to Database Pin
Knappen26-Sep-02 8:59
Knappen26-Sep-02 8:59 
GeneralMicrosoft JET Database Engine error '80040e10' Pin
e c l i p t o i d . 3 3 026-Sep-02 2:23
e c l i p t o i d . 3 3 026-Sep-02 2:23 
Generalscrollbar colors Pin
Rickard Andersson2025-Sep-02 21:12
Rickard Andersson2025-Sep-02 21:12 
GeneralRe: scrollbar colors Pin
Paul Watson25-Sep-02 22:48
sitebuilderPaul Watson25-Sep-02 22:48 

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.