473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Webrequest and shared files

Hi

I was wondering if it's possible to use the WebRequest class to access a file on windows shared folder with authentication? If yes, what would the syntax be? I've tried to look this up in the references available but to no avail

Also, is it safer (better practise) in an LAN environment to use HTTP requests to access shared files (via ASP.NET) rather than UNC file shares

TIA
Regards
John
Nov 18 '05 #1
8 2367
WebRequest request = WebRequest.Create( "http://server/file1.xls" );
request.PreAuthenticate = true;
request.Credentials = new NetworkCredential( "user", "pass" );

request.GetResponse();

Now, this will work for integrated NT authentication. If you are using
forms authentication this won't help you.

I personally use UNC paths for getting files that way you can use the NTFS
security, plus I think it is a more efficient use of bandwidth transferring
files this way, as opposed to http.

HTH,

bill

"John K." <ts*****@hotmail.com> wrote in message
news:BD**********************************@microsof t.com...
Hi,

I was wondering if it's possible to use the WebRequest class to access a file on windows shared folder with authentication? If yes, what would the
syntax be? I've tried to look this up in the references available but to no
avail.
Also, is it safer (better practise) in an LAN environment to use HTTP requests to access shared files (via ASP.NET) rather than UNC file shares?
TIA,
Regards,
John

Nov 18 '05 #2
Thanks Bill

However, I think I'm missing the crucial bit here..

So are you saying that for a UNC share (e.g. "\\server\share\file.xml" ) the code would be the following

WebRequest request = WebRequest.Create( "http://server/share/file.xml" )
request.PreAuthenticate = true
request.Credentials = new NetworkCredential( "user", "pass" )

request.GetResponse()

I believe the syntax of the URI has to be different for the UNC share, surely? I've tried a couple of different variant
but usually get a logon denied related error, or that it can't find the network resource

Regards
Joh
----- William F. Robertson, Jr. wrote: ----

WebRequest request = WebRequest.Create( "http://server/file1.xls" )
request.PreAuthenticate = true
request.Credentials = new NetworkCredential( "user", "pass" )

request.GetResponse()

Now, this will work for integrated NT authentication. If you are usin
forms authentication this won't help you

I personally use UNC paths for getting files that way you can use the NTF
security, plus I think it is a more efficient use of bandwidth transferrin
files this way, as opposed to http

HTH

bil

"John K." <ts*****@hotmail.com> wrote in messag
news:BD**********************************@microsof t.com..
Hi
I was wondering if it's possible to use the WebRequest class to access file on windows shared folder with authentication? If yes, what would th
syntax be? I've tried to look this up in the references available but to n
avail Also, is it safer (better practise) in an LAN environment to use HTT requests to access shared files (via ASP.NET) rather than UNC file shares TIA

Regards
Joh


Nov 18 '05 #3
I also was assuming you had a virtual directory set up called "share" that
points to \\server\share and has all the associated permissions.

Also, the URI you are using in your Create method, try placing that straight
into a browser and make sure you can open that way.

Can you not just access the file through UNC?

//You will also need to set the GetReponse to the WebResponse object.
WebResponse response = request.GetResponse();

//this probably isn't the only way to do this.
System.IO.Stream stream = response.GetResponseStream();
StreamReader reader = new StreamReader( stream );

string s = reader.ReadToEnd();

response.Close()

HTH,

bill

"John K" <ts*****@hotmail.com> wrote in message
news:E6**********************************@microsof t.com...
Thanks Bill,

However, I think I'm missing the crucial bit here...

So are you saying that for a UNC share (e.g. "\\server\share\file.xml" ) the code would be the following:
WebRequest request = WebRequest.Create( "http://server/share/file.xml" ); request.PreAuthenticate = true;
request.Credentials = new NetworkCredential( "user", "pass" );

request.GetResponse();

I believe the syntax of the URI has to be different for the UNC share, surely? I've tried a couple of different variants but usually get a logon denied related error, or that it can't find the network resource.
Regards,
John
----- William F. Robertson, Jr. wrote: -----

WebRequest request = WebRequest.Create( "http://server/file1.xls" );
request.PreAuthenticate = true;
request.Credentials = new NetworkCredential( "user", "pass" );

request.GetResponse();

Now, this will work for integrated NT authentication. If you are using forms authentication this won't help you.

I personally use UNC paths for getting files that way you can use the NTFS security, plus I think it is a more efficient use of bandwidth transferring files this way, as opposed to http.

HTH,

bill

"John K." <ts*****@hotmail.com> wrote in message
news:BD**********************************@microsof t.com...
> Hi,
>> I was wondering if it's possible to use the WebRequest class to access a
file on windows shared folder with authentication? If yes, what would the syntax be? I've tried to look this up in the references available but to no avail.
>> Also, is it safer (better practise) in an LAN environment to use
HTTP requests to access shared files (via ASP.NET) rather than UNC file

shares? >> TIA,

> Regards,
> John


Nov 18 '05 #4
Well, the current state of this application is using the setup that you assumed
(a virtual directory pointing to the unc share), but I was thinking that maybe it woul
be better to access the file directly rather than via the UNC share (hence my wonderin
if what the preferred best practise when choosing between these 2 options). If going directl
I would eliminate a potential fail-over point (e.g. the webserver going down, or being restarted etc...

From the Framework class library reference

"WebRequest descendants are typically registered to handle a specific protocol, such as HTTP or FTP, but can be registered to handle a request to a specific server or path on a server.

So there should be some way connect to a share \\server\share - but I haven't found the right syntax for it as yet
I can access the files by entering my unc share in the browser so I know the unc file path is correct

Joh

----- William F. Robertson, Jr. wrote: ----

I also was assuming you had a virtual directory set up called "share" tha
points to \\server\share and has all the associated permissions

Also, the URI you are using in your Create method, try placing that straigh
into a browser and make sure you can open that way

Can you not just access the file through UNC

//You will also need to set the GetReponse to the WebResponse object
WebResponse response = request.GetResponse()

//this probably isn't the only way to do this
System.IO.Stream stream = response.GetResponseStream()
StreamReader reader = new StreamReader( stream )

string s = reader.ReadToEnd()

response.Close(

HTH

bil

"John K" <ts*****@hotmail.com> wrote in messag
news:E6**********************************@microsof t.com..
Thanks Bill
However, I think I'm missing the crucial bit here..
So are you saying that for a UNC share (e.g. "\\server\share\file.xml" the code would be the following
WebRequest request = WebRequest.Create "http://server/share/file.xml" )
request.PreAuthenticate = true
request.Credentials = new NetworkCredential( "user", "pass" )
request.GetResponse()
I believe the syntax of the URI has to be different for the UNC share
surely? I've tried a couple of different variant but usually get a logon denied related error, or that it can't find th network resource Regards

Joh ----- William F. Robertson, Jr. wrote: ----

WebRequest request = WebRequest.Create( "http://server/file1.xls" )

request.PreAuthenticate = true
request.Credentials = new NetworkCredential( "user", "pass" )
request.GetResponse()
Now, this will work for integrated NT authentication. If you ar usin forms authentication this won't help you
I personally use UNC paths for getting files that way you can use th
NTF security, plus I think it is a more efficient use of bandwidt transferrin files this way, as opposed to http
HTH
bil
"John K." <ts*****@hotmail.com> wrote in messag news:BD**********************************@microsof t.com..
Hi
I was wondering if it's possible to use the WebRequest class t access file on windows shared folder with authentication? If yes, what woul th syntax be? I've tried to look this up in the references available bu to n avail Also, is it safer (better practise) in an LAN environment to us
HTT requests to access shared files (via ASP.NET) rather than UNC fil

shares TIA

Regards
Joh

Nov 18 '05 #5
If you can access the file through UNC I would recommend doing it that way.

This link has lots of examples:
http://msdn.microsoft.com/library/de...ClassTopic.asp

Here is some sample code to read the file into a byte array.

FileStream fileStream = new FileStream( @"\\server\share\file.xls",
FileMode.Open, FileAccess.Read, FileShare.Read);
BinaryReader reader = new BinaryReader( fileStream );

byte [] bytes = reader.ReadBytes( ( int ) fileStream.Length );

bytes now holds all the content of the file.

bill
"John K" <ts*****@hotmail.com> wrote in message
news:B8**********************************@microsof t.com...
Well, the current state of this application is using the setup that you assumed (a virtual directory pointing to the unc share), but I was thinking that maybe it would be better to access the file directly rather than via the UNC share (hence my wondering if what the preferred best practise when choosing between these 2 options). If going directly I would eliminate a potential fail-over point (e.g. the webserver going down, or being restarted etc...)
From the Framework class library reference:

"WebRequest descendants are typically registered to handle a specific protocol, such as HTTP or FTP, but can be registered to handle a request to
a specific server or path on a server."
So there should be some way connect to a share \\server\share - but I haven't found the right syntax for it as yet. I can access the files by entering my unc share in the browser so I know the unc file path is correct.
John

----- William F. Robertson, Jr. wrote: -----

I also was assuming you had a virtual directory set up called "share" that points to \\server\share and has all the associated permissions.

Also, the URI you are using in your Create method, try placing that straight into a browser and make sure you can open that way.

Can you not just access the file through UNC?

//You will also need to set the GetReponse to the WebResponse object.
WebResponse response = request.GetResponse();

//this probably isn't the only way to do this.
System.IO.Stream stream = response.GetResponseStream();
StreamReader reader = new StreamReader( stream );

string s = reader.ReadToEnd();

response.Close()

HTH,

bill

"John K" <ts*****@hotmail.com> wrote in message
news:E6**********************************@microsof t.com...
> Thanks Bill,
>> However, I think I'm missing the crucial bit here...
>> So are you saying that for a UNC share (e.g.
"\\server\share\file.xml" )
the code would be the following: >> WebRequest request = WebRequest.Create( "http://server/share/file.xml" );
> request.PreAuthenticate = true;
> request.Credentials = new NetworkCredential( "user", "pass" );
>> request.GetResponse();
>> I believe the syntax of the URI has to be different for the UNC
share,
surely? I've tried a couple of different variants
> but usually get a logon denied related error, or that it can't find
the network resource. >> Regards, > John
>>> ----- William F. Robertson, Jr. wrote: -----
>> WebRequest request = WebRequest.Create(
"http://server/file1.xls" ); > request.PreAuthenticate = true;
> request.Credentials = new NetworkCredential( "user", "pass" );
>> request.GetResponse();
>> Now, this will work for integrated NT authentication. If you

are using
> forms authentication this won't help you.
>> I personally use UNC paths for getting files that way you can
use the NTFS
> security, plus I think it is a more efficient use of bandwidth transferring
> files this way, as opposed to http.
>> HTH,
>> bill
>> "John K." <ts*****@hotmail.com> wrote in message

> news:BD**********************************@microsof t.com...
>> Hi,
>>> I was wondering if it's possible to use the WebRequest class to

access a
> file on windows shared folder with authentication? If yes,

what would the
> syntax be? I've tried to look this up in the references
available but to no
> avail.
>>> Also, is it safer (better practise) in an LAN environment to use
HTTP
> requests to access shared files (via ASP.NET) rather than UNC

file shares? >>> TIA,
>> Regards,
>> John
>>>

Nov 18 '05 #6
Here is some code that will work.

I created a virtual directory called temp that pointed to c:\temp on my hard
drive. (I did this at home so I didn't have a network path to test the vdir
with, but it shouldn't matter as long as permissions to read are granted.)

I required integrated nt authentication and turned off the anonymous access.
(probably something similiar to what you are doing.)

The file I opened was just a text file that I Response.Write() to the
browser, you would be able to parse the file, load into a dataset, or
literally stream the file back to the client if you want.

I hope this is what you were looking for.

HTH,

bill

WebRequest request = WebRequest.Create(
"http://localhost/tempasp/temp/trace.txt" );
request.PreAuthenticate = true;
request.Credentials = new NetworkCredential("user", "pass", "domain" );

WebResponse response = request.GetResponse();
StreamReader reader = new StreamReader( response.GetResponseStream() );

string line = String.Empty;
while ( ( line = reader.ReadLine() ) != null )
{
Response.Write( line );
Response.Write( "<BR>" );
}
reader.Close();
response.Close();

"John K." <ts*****@hotmail.com> wrote in message
news:0A**********************************@microsof t.com...
Thanks Bill,

I guess I will have to do something as what your're giving example of.

(Still slightly curious about if it's possible to do it via the Webrequest class though - it would save me some small amount of code to rewrite.).
Cheers,
John

----- William F. Robertson, Jr. wrote: -----

If you can access the file through UNC I would recommend doing it that way.
This link has lots of examples:
http://msdn.microsoft.com/library/de...ClassTopic.asp
Here is some sample code to read the file into a byte array.

FileStream fileStream = new FileStream( @"\\server\share\file.xls",
FileMode.Open, FileAccess.Read, FileShare.Read);
BinaryReader reader = new BinaryReader( fileStream );

byte [] bytes = reader.ReadBytes( ( int ) fileStream.Length );

bytes now holds all the content of the file.

bill
"John K" <ts*****@hotmail.com> wrote in message
news:B8**********************************@microsof t.com...
> Well, the current state of this application is using the setup that you
assumed
> (a virtual directory pointing to the unc share), but I was thinking that
maybe it would
> be better to access the file directly rather than via the UNC share
(hence my wondering
> if what the preferred best practise when choosing between these 2 options). If going directly
> I would eliminate a potential fail-over point (e.g. the webserver

going down, or being restarted etc...) >> From the Framework class library reference:
>> "WebRequest descendants are typically registered to handle a specific
protocol, such as HTTP or FTP, but can be registered to handle a request to a specific server or path on a server."
>> So there should be some way connect to a share \\server\share -
but I
haven't found the right syntax for it as yet.
> I can access the files by entering my unc share in the browser so I
know the unc file path is correct. >> John
>> ----- William F. Robertson, Jr. wrote: -----
>> I also was assuming you had a virtual directory set up called
"share"
that
> points to \\server\share and has all the associated
permissions. >> Also, the URI you are using in your Create method, try placing that straight
> into a browser and make sure you can open that way.
>> Can you not just access the file through UNC?
>> //You will also need to set the GetReponse to the WebResponse
object. > WebResponse response = request.GetResponse();
>> //this probably isn't the only way to do this.

> System.IO.Stream stream = response.GetResponseStream();
> StreamReader reader = new StreamReader( stream );
>> string s = reader.ReadToEnd();
>> response.Close()
>> HTH,
>> bill
>> "John K" <ts*****@hotmail.com> wrote in message

> news:E6**********************************@microsof t.com...
>> Thanks Bill,
>>> However, I think I'm missing the crucial bit here...
>>> So are you saying that for a UNC share (e.g. "\\server\share\file.xml" )
> the code would be the following:
>>> WebRequest request = WebRequest.Create(

> "http://server/share/file.xml" );
>> request.PreAuthenticate = true;
>> request.Credentials = new NetworkCredential( "user",

"pass" ); >>> request.GetResponse();
>>> I believe the syntax of the URI has to be different for the UNC

share,
> surely? I've tried a couple of different variants
>> but usually get a logon denied related error, or that it can't find the
> network resource.
>>> Regards,
>> John
>>>> ----- William F. Robertson, Jr. wrote: -----
>>> WebRequest request = WebRequest.Create(
"http://server/file1.xls" ); >> request.PreAuthenticate = true;
>> request.Credentials = new NetworkCredential( "user",

"pass" ); >>> request.GetResponse();
>>> Now, this will work for integrated NT authentication. If

you are
> using
>> forms authentication this won't help you.
>>> I personally use UNC paths for getting files that way you
can use the
> NTFS
>> security, plus I think it is a more efficient use of

bandwidth > transferring
>> files this way, as opposed to http.
>>> HTH,
>>> bill
>>> "John K." <ts*****@hotmail.com> wrote in message
>> news:BD**********************************@microsof t.com...
>>> Hi,
>>>> I was wondering if it's possible to use the WebRequest class to

> access a
>> file on windows shared folder with authentication? If yes,

what would
> the
>> syntax be? I've tried to look this up in the references

available but
> to no
>> avail.
>>>> Also, is it safer (better practise) in an LAN environment to use

> HTTP
>> requests to access shared files (via ASP.NET) rather than UNC

file
> shares?
>>>> TIA,
>>> Regards,
>>> John
>>>>

Nov 18 '05 #7
Would you happen to know how I could provide the necessary credentials to
acces a UNC path with if I need to be able to access it with an account
other than the one that the user is logged in with? there's nothing in the
samples provided indicating how to do that.

Thanks In Advance,
Craig Burkett

"William F. Robertson, Jr." <wf*********@kpmg.com> wrote in message
news:Ov*************@tk2msftngp13.phx.gbl...
If you can access the file through UNC I would recommend doing it that way.
This link has lots of examples:
http://msdn.microsoft.com/library/de...ClassTopic.asp
Here is some sample code to read the file into a byte array.

FileStream fileStream = new FileStream( @"\\server\share\file.xls",
FileMode.Open, FileAccess.Read, FileShare.Read);
BinaryReader reader = new BinaryReader( fileStream );

byte [] bytes = reader.ReadBytes( ( int ) fileStream.Length );

bytes now holds all the content of the file.

bill
"John K" <ts*****@hotmail.com> wrote in message
news:B8**********************************@microsof t.com...
Well, the current state of this application is using the setup that you assumed
(a virtual directory pointing to the unc share), but I was thinking that

maybe it would
be better to access the file directly rather than via the UNC share (hence my wondering
if what the preferred best practise when choosing between these 2 options). If going directly
I would eliminate a potential fail-over point (e.g. the webserver going

down, or being restarted etc...)

From the Framework class library reference:

"WebRequest descendants are typically registered to handle a specific

protocol, such as HTTP or FTP, but can be registered to handle a request

to a specific server or path on a server."

So there should be some way connect to a share \\server\share - but I haven't found the right syntax for it as yet.
I can access the files by entering my unc share in the browser so I know

the unc file path is correct.

John

----- William F. Robertson, Jr. wrote: -----

I also was assuming you had a virtual directory set up called "share" that
points to \\server\share and has all the associated permissions.

Also, the URI you are using in your Create method, try placing that straight
into a browser and make sure you can open that way.

Can you not just access the file through UNC?

//You will also need to set the GetReponse to the WebResponse

object. WebResponse response = request.GetResponse();

//this probably isn't the only way to do this.
System.IO.Stream stream = response.GetResponseStream();
StreamReader reader = new StreamReader( stream );

string s = reader.ReadToEnd();

response.Close()

HTH,

bill

"John K" <ts*****@hotmail.com> wrote in message
news:E6**********************************@microsof t.com...
> Thanks Bill,
>> However, I think I'm missing the crucial bit here...
>> So are you saying that for a UNC share (e.g. "\\server\share\file.xml" )
the code would be the following:
>> WebRequest request = WebRequest.Create(

"http://server/share/file.xml" );
> request.PreAuthenticate = true;
> request.Credentials = new NetworkCredential( "user", "pass" ); >> request.GetResponse();
>> I believe the syntax of the URI has to be different for the UNC

share,
surely? I've tried a couple of different variants
> but usually get a logon denied related error, or that it can't find the
network resource.
>> Regards,
> John
>>> ----- William F. Robertson, Jr. wrote: -----
>> WebRequest request = WebRequest.Create(
"http://server/file1.xls" ); > request.PreAuthenticate = true;
> request.Credentials = new NetworkCredential( "user",

"pass" ); >> request.GetResponse();
>> Now, this will work for integrated NT authentication. If

you are
using
> forms authentication this won't help you.
>> I personally use UNC paths for getting files that way you
can use the
NTFS
> security, plus I think it is a more efficient use of
bandwidth transferring
> files this way, as opposed to http.
>> HTH,
>> bill
>> "John K." <ts*****@hotmail.com> wrote in message
> news:BD**********************************@microsof t.com...
>> Hi,
>>> I was wondering if it's possible to use the WebRequest class to

access a
> file on windows shared folder with authentication? If yes, what would
the
> syntax be? I've tried to look this up in the references

available but
to no
> avail.
>>> Also, is it safer (better practise) in an LAN environment to

use HTTP
> requests to access shared files (via ASP.NET) rather than

UNC file
shares?
>>> TIA,
>> Regards,
>> John
>>>



Nov 18 '05 #8
Were you able to figure out as to how to programaticaly set up credentials
for an account other than the one the user is logged in with?

Thanks In Advance,
Craig Burkett
"John K" <ts*****@hotmail.com> wrote in message
news:B8**********************************@microsof t.com...
Well, the current state of this application is using the setup that you assumed (a virtual directory pointing to the unc share), but I was thinking that maybe it would be better to access the file directly rather than via the UNC share (hence my wondering if what the preferred best practise when choosing between these 2 options). If going directly I would eliminate a potential fail-over point (e.g. the webserver going down, or being restarted etc...)
From the Framework class library reference:

"WebRequest descendants are typically registered to handle a specific protocol, such as HTTP or FTP, but can be registered to handle a request to
a specific server or path on a server."
So there should be some way connect to a share \\server\share - but I haven't found the right syntax for it as yet. I can access the files by entering my unc share in the browser so I know the unc file path is correct.
John

----- William F. Robertson, Jr. wrote: -----

I also was assuming you had a virtual directory set up called "share" that points to \\server\share and has all the associated permissions.

Also, the URI you are using in your Create method, try placing that straight into a browser and make sure you can open that way.

Can you not just access the file through UNC?

//You will also need to set the GetReponse to the WebResponse object.
WebResponse response = request.GetResponse();

//this probably isn't the only way to do this.
System.IO.Stream stream = response.GetResponseStream();
StreamReader reader = new StreamReader( stream );

string s = reader.ReadToEnd();

response.Close()

HTH,

bill

"John K" <ts*****@hotmail.com> wrote in message
news:E6**********************************@microsof t.com...
> Thanks Bill,
>> However, I think I'm missing the crucial bit here...
>> So are you saying that for a UNC share (e.g.
"\\server\share\file.xml" )
the code would be the following: >> WebRequest request = WebRequest.Create( "http://server/share/file.xml" );
> request.PreAuthenticate = true;
> request.Credentials = new NetworkCredential( "user", "pass" );
>> request.GetResponse();
>> I believe the syntax of the URI has to be different for the UNC
share,
surely? I've tried a couple of different variants
> but usually get a logon denied related error, or that it can't find
the network resource. >> Regards, > John
>>> ----- William F. Robertson, Jr. wrote: -----
>> WebRequest request = WebRequest.Create(
"http://server/file1.xls" ); > request.PreAuthenticate = true;
> request.Credentials = new NetworkCredential( "user", "pass" );
>> request.GetResponse();
>> Now, this will work for integrated NT authentication. If you

are using
> forms authentication this won't help you.
>> I personally use UNC paths for getting files that way you can
use the NTFS
> security, plus I think it is a more efficient use of bandwidth transferring
> files this way, as opposed to http.
>> HTH,
>> bill
>> "John K." <ts*****@hotmail.com> wrote in message

> news:BD**********************************@microsof t.com...
>> Hi,
>>> I was wondering if it's possible to use the WebRequest class to

access a
> file on windows shared folder with authentication? If yes,

what would the
> syntax be? I've tried to look this up in the references
available but to no
> avail.
>>> Also, is it safer (better practise) in an LAN environment to use
HTTP
> requests to access shared files (via ASP.NET) rather than UNC

file shares? >>> TIA,
>> Regards,
>> John
>>>


Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andreas Håkansson | last post by:
Hello, I'm using the WebRequest class to download a few files of a webserver. I use async io to fecth the data. My problem is that the first file works like a charm, and the second file loads...
5
by: james.dixon | last post by:
Hi I have been struggling with what should be a simple thing. I want to crawl the web for specific links, and save any html and files that meet my criteria to my hard drive. I thought that...
1
by: Dave Cowart | last post by:
Is there a known issue about System.Net.Webrequest interfering with Request.Querystring? My web application pulls a record ID from a URL, then uses that record ID to pull information a database. ...
2
by: cashdeskmac | last post by:
I am trying to create an XML file in a shared folder on the intranet but keep getting an exception. I am using the Create method of the WebRequest class and calling the response method afterwards....
2
by: kkb | last post by:
Hello! First, I'm sorry because of my english... I'll try to be understandable! I've got a strange problem using .NET 2003 C# and I haven't figured it out for a long time. I'm implementing an...
6
by: matt | last post by:
hello, i am having trouble doing something. when a user triggers a certain event in my app, i need to initiate another web request to one of my other webpages, programmatically. currently, i do...
3
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm trying to create a call to a web page to validate and register software. The code I'm using is: Private Sub OK_Click(ByVal sender As...
1
by: Tosco | last post by:
I'm trying to use for the first time WebRequest, but all the simplest examples that I find in the documentation or Internet don't work. For example this: Public Shared Sub Main() Dim request As...
2
by: =?Utf-8?B?cGVsZWdrMQ==?= | last post by:
when i send an xml to a server using WebRequest object (i am sending a paramater+xml in size of about 250 chars) i recve an error : System.Net.WebException was unhandled Message="The request...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.