473,769 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending a path to a FILE control ( it has to be possible! )

Hi all.. here s my problem ( maybe some of you saw me on other groups, but i
cant find the solution !! )
I have to upload a file to an external site, so, i made a .vbs file , that
logins to the site, and then i have to select the file to upload.. i used
sendkeys.. and i worked perfect.. BUT ... the computer must be locked for
security ( obviusly ) reazons.. so..i think this probable solutions to
unlock the computer and run the application .. or find
another way to fill the FILE control on that site...

- I read some groups, and i found a SendMessage() function, that sends
characters to an especific application, but dont know wich language is it...
and if it runs on a locked computer.
- I can do the click on BROWSE button, but how can i select a file on the
browse window ? ( without using SENDKEYS ) .. i can do a VB6 application
that runs the URL in a webcontrol, but cannot acces to that BROWSER window
right?
- Is there any browser with the security bug that i can write in the VALUE
property of the FILE control?? or is anyway to set that security on
IExplorer?
- .NET .... is there anyway to do this in .NET (ASP.NET or VB.NET) ? i m
begginer but if it could be possible.. i learn .NET in one hour !! lol..
Any idea would be really help here..

Thank you all.

--
CHIN@KD
www.racingclub.com.ar

Jul 21 '05
20 2513
> System.Net.WebC lient is used client side (NOT server side). It's purpose
is
to upload (POST) a file to a particular page. This is done client side...
I'm afraid that's just not true, Patrice. System.Net.WebC lient is used
server-side in an ASP.Net application. It acts like a browser, sending HTTP
requests, and receiving HTTP responses. The HTML input type=file form
element is used for uploading files on the client. The server-side ASP.Net
Control that creates the file upload form field on the client is
System.Web.UI.H tmlControls.Htm lInputFile.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l... System.Net.WebC lient is used client side (NOT server side). It's purpose
is
to upload (POST) a file to a particular page. This is done client side...

It should work. Check the documentation for this class and give it a
try...

Patrice

--

"CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I have to do a batch process that replaces a guy and his clicks .. lol

there is no way to change or access the remote side code.. and no other

way
to do that loggin the page and posting the file..

the page is like hotmail, u log in.. select New Mail.. attach a file ..

and
then have to select the file... with System.Net.WebC lient, can i emule
all
that? .. is possible the website knows if the file comes from
System.Net.WebC lient or from their form ?

sorry for my english :p i m posting in japanesse groups !!! lol

Thnx
"Patrice" <no****@nowhere .com> wrote in message
news:#4******** *****@TK2MSFTNG P14.phx.gbl...
> I'm not sure to have the whole picture. If I understood you are using a

web
> app that let's you upload a file. Instead of doing this yourself you would > like to have an app doing this for you ?
>
> You have nothing to change or do server side. You'll have a client side

.NET
> app that uses System.Net.WebC lient to post a file to the server side page. > You could also ask them for possible alternate methods (they may have FTP > access ?)
>
> Patrice
> --
>
> "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> news:ec******** ******@TK2MSFTN GP10.phx.gbl...
> > Thanx Patrice !!!
> >
> > But this app works on the Client.. and i dont have access to the server > > site... so.. i only can navigate their site and find out how to put the > path
> > on the file control !!!
> >
> > "Patrice" <no****@nowhere .com> wrote in message
> > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
> > > System.Net.WebC lient allows to upload a file to particular page.
> > > See

the
> > SDK
> > > documentation for a sample.
> > >
> > > Patrice
> > >
> > >
> > > --
> > >
> > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
> > > > Hi all.. here s my problem ( maybe some of you saw me on other

groups,
> > but
> > > i
> > > > cant find the solution !! )
> > > >
> > > >
> > > > I have to upload a file to an external site, so, i made a .vbs file
,
> > that
> > > > logins to the site, and then i have to select the file to
> > > > upload..

i > > used
> > > > sendkeys.. and i worked perfect.. BUT ... the computer must be

locked
> > for
> > > > security ( obviusly ) reazons.. so..i think this probable solutions
to
> > > > unlock the computer and run the application .. or find
> > > > another way to fill the FILE control on that site...
> > > >
> > > > - I read some groups, and i found a SendMessage() function, that
> sends
> > > > characters to an especific application, but dont know wich

language
is
> > > it...
> > > > and if it runs on a locked computer.
> > > > - I can do the click on BROWSE button, but how can i select a

file
on
> > the
> > > > browse window ? ( without using SENDKEYS ) .. i can do a VB6
> application
> > > > that runs the URL in a webcontrol, but cannot acces to that

BROWSER > > window
> > > > right?
> > > > - Is there any browser with the security bug that i can write in

the
> > > VALUE
> > > > property of the FILE control?? or is anyway to set that security on > > > > IExplorer?
> > > > - .NET .... is there anyway to do this in .NET (ASP.NET or

VB.NET)
?
> i
> > m
> > > > begginer but if it could be possible.. i learn .NET in one hour
> > > > !!
> lol..
> > > >
> > > >
> > > > Any idea would be really help here..
> > > >
> > > > Thank you all.
> > > >
> > > > --
> > > > CHIN@KD
> > > > www.racingclub.com.ar
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 21 '05 #11
> For help with ASP.Net, see the microsoft.publi c.dotnet.framew ork.aspnet
newsgroup.


Pardon me. Thought I was in a different newsgroup!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uT******** ******@TK2MSFTN GP09.phx.gbl...
I M CODING IN .NET RIGHT NOW !!!!

VB.NET or ASP.NET ??.. or it s the same ??


If you have to ask, you might want to study a bit more before you start
coding.

For help with ASP.Net, see the microsoft.publi c.dotnet.framew ork.aspnet
newsgroup.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:O3******** ******@TK2MSFTN GP14.phx.gbl...
I M CODING IN .NET RIGHT NOW !!!!

VB.NET or ASP.NET ??.. or it s the same ??
REALLY REALLY TNX !!!
"Patrice" <no****@nowhere .com> wrote in message
news:#w******** ******@TK2MSFTN GP12.phx.gbl...
System.Net.WebC lient is used client side (NOT server side). It's purpose

is
to upload (POST) a file to a particular page. This is done client
side...

It should work. Check the documentation for this class and give it a

try...

Patrice

--

"CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
> I have to do a batch process that replaces a guy and his clicks .. lol
>
> there is no way to change or access the remote side code.. and no
> other
way
> to do that loggin the page and posting the file..
>
> the page is like hotmail, u log in.. select New Mail.. attach a file
> ..
and
> then have to select the file... with System.Net.WebC lient, can i emule

all
> that? .. is possible the website knows if the file comes from
> System.Net.WebC lient or from their form ?
>
> sorry for my english :p i m posting in japanesse groups !!! lol
>
> Thnx
>
>
> "Patrice" <no****@nowhere .com> wrote in message
> news:#4******** *****@TK2MSFTNG P14.phx.gbl...
> > I'm not sure to have the whole picture. If I understood you are
> > using

a
> web
> > app that let's you upload a file. Instead of doing this yourself you
would
> > like to have an app doing this for you ?
> >
> > You have nothing to change or do server side. You'll have a client

side
> .NET
> > app that uses System.Net.WebC lient to post a file to the server side
page.
> > You could also ask them for possible alternate methods (they may
> > have
FTP
> > access ?)
> >
> > Patrice
> > --
> >
> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> > news:ec******** ******@TK2MSFTN GP10.phx.gbl...
> > > Thanx Patrice !!!
> > >
> > > But this app works on the Client.. and i dont have access to the
server
> > > site... so.. i only can navigate their site and find out how to
> > > put
the
> > path
> > > on the file control !!!
> > >
> > > "Patrice" <no****@nowhere .com> wrote in message
> > > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
> > > > System.Net.WebC lient allows to upload a file to particular page.

See
> the
> > > SDK
> > > > documentation for a sample.
> > > >
> > > > Patrice
> > > >
> > > >
> > > > --
> > > >
> > > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> > > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
> > > > > Hi all.. here s my problem ( maybe some of you saw me on other
> groups,
> > > but
> > > > i
> > > > > cant find the solution !! )
> > > > >
> > > > >
> > > > > I have to upload a file to an external site, so, i made a .vbs
file
> ,
> > > that
> > > > > logins to the site, and then i have to select the file to

upload..
i
> > > used
> > > > > sendkeys.. and i worked perfect.. BUT ... the computer must be
> locked
> > > for
> > > > > security ( obviusly ) reazons.. so..i think this probable
solutions
> to
> > > > > unlock the computer and run the application .. or find
> > > > > another way to fill the FILE control on that site...
> > > > >
> > > > > - I read some groups, and i found a SendMessage() function,

that
> > sends
> > > > > characters to an especific application, but dont know wich
language
> is
> > > > it...
> > > > > and if it runs on a locked computer.
> > > > > - I can do the click on BROWSE button, but how can i select a
file
> on
> > > the
> > > > > browse window ? ( without using SENDKEYS ) .. i can do a VB6
> > application
> > > > > that runs the URL in a webcontrol, but cannot acces to that
BROWSER
> > > window
> > > > > right?
> > > > > - Is there any browser with the security bug that i can write

in
> the
> > > > VALUE
> > > > > property of the FILE control?? or is anyway to set that
> > > > > security
on
> > > > > IExplorer?
> > > > > - .NET .... is there anyway to do this in .NET (ASP.NET or
VB.NET)
> ?
> > i
> > > m
> > > > > begginer but if it could be possible.. i learn .NET in one
> > > > > hour

!!
> > lol..
> > > > >
> > > > >
> > > > > Any idea would be really help here..
> > > > >
> > > > > Thank you all.
> > > > >
> > > > > --
> > > > > CHIN@KD
> > > > > www.racingclub.com.ar
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 21 '05 #12
As long as you have .NET framework installed you can use
System.Net.WebC lient either client or server side). In this case, he'll need
to use this client side. This is sometimes used server side to issue a
request to a third party web server from your own server...

HtmlInputFile creates an HTML tag in an HTML page that let the user select a
file. This selected file is then posted to a server side web page that
handles the incoming file and can then save this file.

Similarly to what a browser does, System.Net.WebC lient allows to post a
file using the same mechanism used by a browser (this is defined in a RFC).
As this is the same mechanism, the server side page will be able to process
this file as if it was posted using a browser.

Hoping to be a bit more clear...

Patrice

--

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> a écrit dans le message
de news:uV******** ******@TK2MSFTN GP10.phx.gbl...
System.Net.WebC lient is used client side (NOT server side). It's purpose
is
to upload (POST) a file to a particular page. This is done client side...

I'm afraid that's just not true, Patrice. System.Net.WebC lient is used
server-side in an ASP.Net application. It acts like a browser, sending HTTP requests, and receiving HTTP responses. The HTML input type=file form
element is used for uploading files on the client. The server-side ASP.Net
Control that creates the file upload form field on the client is
System.Web.UI.H tmlControls.Htm lInputFile.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
System.Net.WebC lient is used client side (NOT server side). It's purpose
is
to upload (POST) a file to a particular page. This is done client

side...
It should work. Check the documentation for this class and give it a
try...

Patrice

--

"CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I have to do a batch process that replaces a guy and his clicks .. lol

there is no way to change or access the remote side code.. and no other

way
to do that loggin the page and posting the file..

the page is like hotmail, u log in.. select New Mail.. attach a file ..

and
then have to select the file... with System.Net.WebC lient, can i emule
all
that? .. is possible the website knows if the file comes from
System.Net.WebC lient or from their form ?

sorry for my english :p i m posting in japanesse groups !!! lol

Thnx
"Patrice" <no****@nowhere .com> wrote in message
news:#4******** *****@TK2MSFTNG P14.phx.gbl...
> I'm not sure to have the whole picture. If I understood you are using a web
> app that let's you upload a file. Instead of doing this yourself you

would
> like to have an app doing this for you ?
>
> You have nothing to change or do server side. You'll have a client side .NET
> app that uses System.Net.WebC lient to post a file to the server side

page.
> You could also ask them for possible alternate methods (they may have

FTP
> access ?)
>
> Patrice
> --
>
> "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> news:ec******** ******@TK2MSFTN GP10.phx.gbl...
> > Thanx Patrice !!!
> >
> > But this app works on the Client.. and i dont have access to the

server
> > site... so.. i only can navigate their site and find out how to put

the
> path
> > on the file control !!!
> >
> > "Patrice" <no****@nowhere .com> wrote in message
> > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
> > > System.Net.WebC lient allows to upload a file to particular page.
> > > See
the
> > SDK
> > > documentation for a sample.
> > >
> > > Patrice
> > >
> > >
> > > --
> > >
> > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
> > > > Hi all.. here s my problem ( maybe some of you saw me on other
groups,
> > but
> > > i
> > > > cant find the solution !! )
> > > >
> > > >
> > > > I have to upload a file to an external site, so, i made a .vbs

file
,
> > that
> > > > logins to the site, and then i have to select the file to
> > > > upload..

i
> > used
> > > > sendkeys.. and i worked perfect.. BUT ... the computer must be
locked
> > for
> > > > security ( obviusly ) reazons.. so..i think this probable

solutions
to
> > > > unlock the computer and run the application .. or find
> > > > another way to fill the FILE control on that site...
> > > >
> > > > - I read some groups, and i found a SendMessage() function, that > sends
> > > > characters to an especific application, but dont know wich

language
is
> > > it...
> > > > and if it runs on a locked computer.
> > > > - I can do the click on BROWSE button, but how can i select a

file
on
> > the
> > > > browse window ? ( without using SENDKEYS ) .. i can do a VB6
> application
> > > > that runs the URL in a webcontrol, but cannot acces to that

BROWSER
> > window
> > > > right?
> > > > - Is there any browser with the security bug that i can write in the
> > > VALUE
> > > > property of the FILE control?? or is anyway to set that
security on
> > > > IExplorer?
> > > > - .NET .... is there anyway to do this in .NET (ASP.NET or

VB.NET)
?
> i
> > m
> > > > begginer but if it could be possible.. i learn .NET in one hour
> > > > !!
> lol..
> > > >
> > > >
> > > > Any idea would be really help here..
> > > >
> > > > Thank you all.
> > > >
> > > > --
> > > > CHIN@KD
> > > > www.racingclub.com.ar
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 21 '05 #13
Ah, that makes sense! Sorry to question your logic, Patrice.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Patrice" <no****@nowhere .com> wrote in message
news:u1******** ******@tk2msftn gp13.phx.gbl...
As long as you have .NET framework installed you can use
System.Net.WebC lient either client or server side). In this case, he'll
need
to use this client side. This is sometimes used server side to issue a
request to a third party web server from your own server...

HtmlInputFile creates an HTML tag in an HTML page that let the user select
a
file. This selected file is then posted to a server side web page that
handles the incoming file and can then save this file.

Similarly to what a browser does, System.Net.WebC lient allows to post a
file using the same mechanism used by a browser (this is defined in a
RFC).
As this is the same mechanism, the server side page will be able to
process
this file as if it was posted using a browser.

Hoping to be a bit more clear...

Patrice

--

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> a écrit dans le message
de news:uV******** ******@TK2MSFTN GP10.phx.gbl...
> System.Net.WebC lient is used client side (NOT server side). It's
> purpose
> is
> to upload (POST) a file to a particular page. This is done client side...

I'm afraid that's just not true, Patrice. System.Net.WebC lient is used
server-side in an ASP.Net application. It acts like a browser, sending

HTTP
requests, and receiving HTTP responses. The HTML input type=file form
element is used for uploading files on the client. The server-side
ASP.Net
Control that creates the file upload form field on the client is
System.Web.UI.H tmlControls.Htm lInputFile.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
> System.Net.WebC lient is used client side (NOT server side). It's
> purpose
> is
> to upload (POST) a file to a particular page. This is done client

side... >
> It should work. Check the documentation for this class and give it a
> try...
>
> Patrice
>
> --
>
> "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>> I have to do a batch process that replaces a guy and his clicks .. lol
>>
>> there is no way to change or access the remote side code.. and no
>> other
> way
>> to do that loggin the page and posting the file..
>>
>> the page is like hotmail, u log in.. select New Mail.. attach a file
>> ..
> and
>> then have to select the file... with System.Net.WebC lient, can i emule
>> all
>> that? .. is possible the website knows if the file comes from
>> System.Net.WebC lient or from their form ?
>>
>> sorry for my english :p i m posting in japanesse groups !!! lol
>>
>> Thnx
>>
>>
>> "Patrice" <no****@nowhere .com> wrote in message
>> news:#4******** *****@TK2MSFTNG P14.phx.gbl...
>> > I'm not sure to have the whole picture. If I understood you are
>> > using a >> web
>> > app that let's you upload a file. Instead of doing this yourself you
> would
>> > like to have an app doing this for you ?
>> >
>> > You have nothing to change or do server side. You'll have a client side >> .NET
>> > app that uses System.Net.WebC lient to post a file to the server side
> page.
>> > You could also ask them for possible alternate methods (they may
>> > have
> FTP
>> > access ?)
>> >
>> > Patrice
>> > --
>> >
>> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> > news:ec******** ******@TK2MSFTN GP10.phx.gbl...
>> > > Thanx Patrice !!!
>> > >
>> > > But this app works on the Client.. and i dont have access to the
> server
>> > > site... so.. i only can navigate their site and find out how to
>> > > put
> the
>> > path
>> > > on the file control !!!
>> > >
>> > > "Patrice" <no****@nowhere .com> wrote in message
>> > > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
>> > > > System.Net.WebC lient allows to upload a file to particular page.
>> > > > See
>> the
>> > > SDK
>> > > > documentation for a sample.
>> > > >
>> > > > Patrice
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> > > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
>> > > > > Hi all.. here s my problem ( maybe some of you saw me on other
>> groups,
>> > > but
>> > > > i
>> > > > > cant find the solution !! )
>> > > > >
>> > > > >
>> > > > > I have to upload a file to an external site, so, i made a .vbs
> file
>> ,
>> > > that
>> > > > > logins to the site, and then i have to select the file to
>> > > > > upload..
> i
>> > > used
>> > > > > sendkeys.. and i worked perfect.. BUT ... the computer must be
>> locked
>> > > for
>> > > > > security ( obviusly ) reazons.. so..i think this probable
> solutions
>> to
>> > > > > unlock the computer and run the application .. or find
>> > > > > another way to fill the FILE control on that site...
>> > > > >
>> > > > > - I read some groups, and i found a SendMessage() function, that >> > sends
>> > > > > characters to an especific application, but dont know wich
> language
>> is
>> > > > it...
>> > > > > and if it runs on a locked computer.
>> > > > > - I can do the click on BROWSE button, but how can i select a
> file
>> on
>> > > the
>> > > > > browse window ? ( without using SENDKEYS ) .. i can do a VB6
>> > application
>> > > > > that runs the URL in a webcontrol, but cannot acces to that
> BROWSER
>> > > window
>> > > > > right?
>> > > > > - Is there any browser with the security bug that i can write in >> the
>> > > > VALUE
>> > > > > property of the FILE control?? or is anyway to set that security > on
>> > > > > IExplorer?
>> > > > > - .NET .... is there anyway to do this in .NET (ASP.NET or
> VB.NET)
>> ?
>> > i
>> > > m
>> > > > > begginer but if it could be possible.. i learn .NET in one
>> > > > > hour
>> > > > > !!
>> > lol..
>> > > > >
>> > > > >
>> > > > > Any idea would be really help here..
>> > > > >
>> > > > > Thank you all.
>> > > > >
>> > > > > --
>> > > > > CHIN@KD
>> > > > > www.racingclub.com.ar
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>



Jul 21 '05 #14
Tnx Kevin... i can install framework on the client, but i have to post the
file to the https url , it is possible with System.Net.Webc lient ?
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uV******** ******@TK2MSFTN GP10.phx.gbl...
System.Net.WebC lient is used client side (NOT server side). It's purpose
is
to upload (POST) a file to a particular page. This is done client side...

I'm afraid that's just not true, Patrice. System.Net.WebC lient is used
server-side in an ASP.Net application. It acts like a browser, sending HTTP requests, and receiving HTTP responses. The HTML input type=file form
element is used for uploading files on the client. The server-side ASP.Net
Control that creates the file upload form field on the client is
System.Web.UI.H tmlControls.Htm lInputFile.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
System.Net.WebC lient is used client side (NOT server side). It's purpose
is
to upload (POST) a file to a particular page. This is done client

side...
It should work. Check the documentation for this class and give it a
try...

Patrice

--

"CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I have to do a batch process that replaces a guy and his clicks .. lol

there is no way to change or access the remote side code.. and no other

way
to do that loggin the page and posting the file..

the page is like hotmail, u log in.. select New Mail.. attach a file ..

and
then have to select the file... with System.Net.WebC lient, can i emule
all
that? .. is possible the website knows if the file comes from
System.Net.WebC lient or from their form ?

sorry for my english :p i m posting in japanesse groups !!! lol

Thnx
"Patrice" <no****@nowhere .com> wrote in message
news:#4******** *****@TK2MSFTNG P14.phx.gbl...
> I'm not sure to have the whole picture. If I understood you are using a web
> app that let's you upload a file. Instead of doing this yourself you

would
> like to have an app doing this for you ?
>
> You have nothing to change or do server side. You'll have a client side .NET
> app that uses System.Net.WebC lient to post a file to the server side

page.
> You could also ask them for possible alternate methods (they may have

FTP
> access ?)
>
> Patrice
> --
>
> "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> news:ec******** ******@TK2MSFTN GP10.phx.gbl...
> > Thanx Patrice !!!
> >
> > But this app works on the Client.. and i dont have access to the

server
> > site... so.. i only can navigate their site and find out how to put

the
> path
> > on the file control !!!
> >
> > "Patrice" <no****@nowhere .com> wrote in message
> > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
> > > System.Net.WebC lient allows to upload a file to particular page.
> > > See
the
> > SDK
> > > documentation for a sample.
> > >
> > > Patrice
> > >
> > >
> > > --
> > >
> > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
> > > > Hi all.. here s my problem ( maybe some of you saw me on other
groups,
> > but
> > > i
> > > > cant find the solution !! )
> > > >
> > > >
> > > > I have to upload a file to an external site, so, i made a .vbs

file
,
> > that
> > > > logins to the site, and then i have to select the file to
> > > > upload..

i
> > used
> > > > sendkeys.. and i worked perfect.. BUT ... the computer must be
locked
> > for
> > > > security ( obviusly ) reazons.. so..i think this probable

solutions
to
> > > > unlock the computer and run the application .. or find
> > > > another way to fill the FILE control on that site...
> > > >
> > > > - I read some groups, and i found a SendMessage() function, that > sends
> > > > characters to an especific application, but dont know wich

language
is
> > > it...
> > > > and if it runs on a locked computer.
> > > > - I can do the click on BROWSE button, but how can i select a

file
on
> > the
> > > > browse window ? ( without using SENDKEYS ) .. i can do a VB6
> application
> > > > that runs the URL in a webcontrol, but cannot acces to that

BROWSER
> > window
> > > > right?
> > > > - Is there any browser with the security bug that i can write in the
> > > VALUE
> > > > property of the FILE control?? or is anyway to set that
security on
> > > > IExplorer?
> > > > - .NET .... is there anyway to do this in .NET (ASP.NET or

VB.NET)
?
> i
> > m
> > > > begginer but if it could be possible.. i learn .NET in one hour
> > > > !!
> lol..
> > > >
> > > >
> > > > Any idea would be really help here..
> > > >
> > > > Thank you all.
> > > >
> > > > --
> > > > CHIN@KD
> > > > www.racingclub.com.ar
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 21 '05 #15
Thanks Patrice !!!! i ll look for WebClient right now !!!

tnx !
"Patrice" <no****@nowhere .com> wrote in message
news:u1******** ******@tk2msftn gp13.phx.gbl...
As long as you have .NET framework installed you can use
System.Net.WebC lient either client or server side). In this case, he'll need to use this client side. This is sometimes used server side to issue a
request to a third party web server from your own server...

HtmlInputFile creates an HTML tag in an HTML page that let the user select a file. This selected file is then posted to a server side web page that
handles the incoming file and can then save this file.

Similarly to what a browser does, System.Net.WebC lient allows to post a
file using the same mechanism used by a browser (this is defined in a RFC). As this is the same mechanism, the server side page will be able to process this file as if it was posted using a browser.

Hoping to be a bit more clear...

Patrice

--

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> a écrit dans le message
de news:uV******** ******@TK2MSFTN GP10.phx.gbl...
System.Net.WebC lient is used client side (NOT server side). It's purpose is
to upload (POST) a file to a particular page. This is done client side...

I'm afraid that's just not true, Patrice. System.Net.WebC lient is used
server-side in an ASP.Net application. It acts like a browser, sending HTTP
requests, and receiving HTTP responses. The HTML input type=file form
element is used for uploading files on the client. The server-side ASP.Net Control that creates the file upload form field on the client is
System.Web.UI.H tmlControls.Htm lInputFile.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
System.Net.WebC lient is used client side (NOT server side). It's purpose is
to upload (POST) a file to a particular page. This is done client

side...
It should work. Check the documentation for this class and give it a
try...

Patrice

--

"CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
> I have to do a batch process that replaces a guy and his clicks .. lol>
> there is no way to change or access the remote side code.. and no other way
> to do that loggin the page and posting the file..
>
> the page is like hotmail, u log in.. select New Mail.. attach a file ... and
> then have to select the file... with System.Net.WebC lient, can i emule> all
> that? .. is possible the website knows if the file comes from
> System.Net.WebC lient or from their form ?
>
> sorry for my english :p i m posting in japanesse groups !!! lol
>
> Thnx
>
>
> "Patrice" <no****@nowhere .com> wrote in message
> news:#4******** *****@TK2MSFTNG P14.phx.gbl...
> > I'm not sure to have the whole picture. If I understood you are using a
> web
> > app that let's you upload a file. Instead of doing this yourself
you would
> > like to have an app doing this for you ?
> >
> > You have nothing to change or do server side. You'll have a client
side> .NET
> > app that uses System.Net.WebC lient to post a file to the server side page.
> > You could also ask them for possible alternate methods (they may have FTP
> > access ?)
> >
> > Patrice
> > --
> >
> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> > news:ec******** ******@TK2MSFTN GP10.phx.gbl...
> > > Thanx Patrice !!!
> > >
> > > But this app works on the Client.. and i dont have access to the
server
> > > site... so.. i only can navigate their site and find out how to put the
> > path
> > > on the file control !!!
> > >
> > > "Patrice" <no****@nowhere .com> wrote in message
> > > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
> > > > System.Net.WebC lient allows to upload a file to particular page.> > > > See
> the
> > > SDK
> > > > documentation for a sample.
> > > >
> > > > Patrice
> > > >
> > > >
> > > > --
> > > >
> > > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de> > > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
> > > > > Hi all.. here s my problem ( maybe some of you saw me on other> groups,
> > > but
> > > > i
> > > > > cant find the solution !! )
> > > > >
> > > > >
> > > > > I have to upload a file to an external site, so, i made a ..vbs file
> ,
> > > that
> > > > > logins to the site, and then i have to select the file to
> > > > > upload..
i
> > > used
> > > > > sendkeys.. and i worked perfect.. BUT ... the computer must be> locked
> > > for
> > > > > security ( obviusly ) reazons.. so..i think this probable
solutions
> to
> > > > > unlock the computer and run the application .. or find
> > > > > another way to fill the FILE control on that site...
> > > > >
> > > > > - I read some groups, and i found a SendMessage() function, that> > sends
> > > > > characters to an especific application, but dont know wich
language
> is
> > > > it...
> > > > > and if it runs on a locked computer.
> > > > > - I can do the click on BROWSE button, but how can i select a file
> on
> > > the
> > > > > browse window ? ( without using SENDKEYS ) .. i can do a VB6
> > application
> > > > > that runs the URL in a webcontrol, but cannot acces to that
BROWSER
> > > window
> > > > > right?
> > > > > - Is there any browser with the security bug that i can write in
> the
> > > > VALUE
> > > > > property of the FILE control?? or is anyway to set that security on
> > > > > IExplorer?
> > > > > - .NET .... is there anyway to do this in .NET (ASP.NET or
VB.NET)
> ?
> > i
> > > m
> > > > > begginer but if it could be possible.. i learn .NET in one

hour> > > > > !!
> > lol..
> > > > >
> > > > >
> > > > > Any idea would be really help here..
> > > > >
> > > > > Thank you all.
> > > > >
> > > > > --
> > > > > CHIN@KD
> > > > > www.racingclub.com.ar
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 21 '05 #16
Yes, if you use it in an embedded .Net Windows Form in the page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:Ou******** ******@TK2MSFTN GP10.phx.gbl...
Tnx Kevin... i can install framework on the client, but i have to post the
file to the https url , it is possible with System.Net.Webc lient ?
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uV******** ******@TK2MSFTN GP10.phx.gbl...
> System.Net.WebC lient is used client side (NOT server side). It's
> purpose
> is
> to upload (POST) a file to a particular page. This is done client side...

I'm afraid that's just not true, Patrice. System.Net.WebC lient is used
server-side in an ASP.Net application. It acts like a browser, sending

HTTP
requests, and receiving HTTP responses. The HTML input type=file form
element is used for uploading files on the client. The server-side
ASP.Net
Control that creates the file upload form field on the client is
System.Web.UI.H tmlControls.Htm lInputFile.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
> System.Net.WebC lient is used client side (NOT server side). It's
> purpose
> is
> to upload (POST) a file to a particular page. This is done client

side... >
> It should work. Check the documentation for this class and give it a
> try...
>
> Patrice
>
> --
>
> "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>> I have to do a batch process that replaces a guy and his clicks .. lol
>>
>> there is no way to change or access the remote side code.. and no
>> other
> way
>> to do that loggin the page and posting the file..
>>
>> the page is like hotmail, u log in.. select New Mail.. attach a file
>> ..
> and
>> then have to select the file... with System.Net.WebC lient, can i emule
>> all
>> that? .. is possible the website knows if the file comes from
>> System.Net.WebC lient or from their form ?
>>
>> sorry for my english :p i m posting in japanesse groups !!! lol
>>
>> Thnx
>>
>>
>> "Patrice" <no****@nowhere .com> wrote in message
>> news:#4******** *****@TK2MSFTNG P14.phx.gbl...
>> > I'm not sure to have the whole picture. If I understood you are
>> > using a >> web
>> > app that let's you upload a file. Instead of doing this yourself you
> would
>> > like to have an app doing this for you ?
>> >
>> > You have nothing to change or do server side. You'll have a client side >> .NET
>> > app that uses System.Net.WebC lient to post a file to the server side
> page.
>> > You could also ask them for possible alternate methods (they may
>> > have
> FTP
>> > access ?)
>> >
>> > Patrice
>> > --
>> >
>> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> > news:ec******** ******@TK2MSFTN GP10.phx.gbl...
>> > > Thanx Patrice !!!
>> > >
>> > > But this app works on the Client.. and i dont have access to the
> server
>> > > site... so.. i only can navigate their site and find out how to
>> > > put
> the
>> > path
>> > > on the file control !!!
>> > >
>> > > "Patrice" <no****@nowhere .com> wrote in message
>> > > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
>> > > > System.Net.WebC lient allows to upload a file to particular page.
>> > > > See
>> the
>> > > SDK
>> > > > documentation for a sample.
>> > > >
>> > > > Patrice
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> > > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
>> > > > > Hi all.. here s my problem ( maybe some of you saw me on other
>> groups,
>> > > but
>> > > > i
>> > > > > cant find the solution !! )
>> > > > >
>> > > > >
>> > > > > I have to upload a file to an external site, so, i made a .vbs
> file
>> ,
>> > > that
>> > > > > logins to the site, and then i have to select the file to
>> > > > > upload..
> i
>> > > used
>> > > > > sendkeys.. and i worked perfect.. BUT ... the computer must be
>> locked
>> > > for
>> > > > > security ( obviusly ) reazons.. so..i think this probable
> solutions
>> to
>> > > > > unlock the computer and run the application .. or find
>> > > > > another way to fill the FILE control on that site...
>> > > > >
>> > > > > - I read some groups, and i found a SendMessage() function, that >> > sends
>> > > > > characters to an especific application, but dont know wich
> language
>> is
>> > > > it...
>> > > > > and if it runs on a locked computer.
>> > > > > - I can do the click on BROWSE button, but how can i select a
> file
>> on
>> > > the
>> > > > > browse window ? ( without using SENDKEYS ) .. i can do a VB6
>> > application
>> > > > > that runs the URL in a webcontrol, but cannot acces to that
> BROWSER
>> > > window
>> > > > > right?
>> > > > > - Is there any browser with the security bug that i can write in >> the
>> > > > VALUE
>> > > > > property of the FILE control?? or is anyway to set that security > on
>> > > > > IExplorer?
>> > > > > - .NET .... is there anyway to do this in .NET (ASP.NET or
> VB.NET)
>> ?
>> > i
>> > > m
>> > > > > begginer but if it could be possible.. i learn .NET in one
>> > > > > hour
>> > > > > !!
>> > lol..
>> > > > >
>> > > > >
>> > > > > Any idea would be really help here..
>> > > > >
>> > > > > Thank you all.
>> > > > >
>> > > > > --
>> > > > > CHIN@KD
>> > > > > www.racingclub.com.ar
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>



Jul 21 '05 #17
Yes, i just try to acces a page with System.Net.Webc lient , simple.. and
done...
i have to login on the site frist.. so i imagine that i have to put a
webcontrol ( in VB6 was that name ) and navigate it right?

and i have to post the user and the pass to the ACTION of the form .. right?

m i on the zone?? lol

tnx

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:es******** ******@TK2MSFTN GP14.phx.gbl...
Yes, if you use it in an embedded .Net Windows Form in the page.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:Ou******** ******@TK2MSFTN GP10.phx.gbl...
Tnx Kevin... i can install framework on the client, but i have to post the file to the https url , it is possible with System.Net.Webc lient ?
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uV******** ******@TK2MSFTN GP10.phx.gbl...
> System.Net.WebC lient is used client side (NOT server side). It's
> purpose
> is
> to upload (POST) a file to a particular page. This is done client

side...

I'm afraid that's just not true, Patrice. System.Net.WebC lient is used
server-side in an ASP.Net application. It acts like a browser, sending

HTTP
requests, and receiving HTTP responses. The HTML input type=file form
element is used for uploading files on the client. The server-side
ASP.Net
Control that creates the file upload form field on the client is
System.Web.UI.H tmlControls.Htm lInputFile.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
> System.Net.WebC lient is used client side (NOT server side). It's
> purpose
> is
> to upload (POST) a file to a particular page. This is done client

side...
>
> It should work. Check the documentation for this class and give it a
> try...
>
> Patrice
>
> --
>
> "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
> news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>> I have to do a batch process that replaces a guy and his clicks .. lol >>
>> there is no way to change or access the remote side code.. and no
>> other
> way
>> to do that loggin the page and posting the file..
>>
>> the page is like hotmail, u log in.. select New Mail.. attach a file
>> ..
> and
>> then have to select the file... with System.Net.WebC lient, can i emule >> all
>> that? .. is possible the website knows if the file comes from
>> System.Net.WebC lient or from their form ?
>>
>> sorry for my english :p i m posting in japanesse groups !!! lol
>>
>> Thnx
>>
>>
>> "Patrice" <no****@nowhere .com> wrote in message
>> news:#4******** *****@TK2MSFTNG P14.phx.gbl...
>> > I'm not sure to have the whole picture. If I understood you are
>> > using

a
>> web
>> > app that let's you upload a file. Instead of doing this yourself you > would
>> > like to have an app doing this for you ?
>> >
>> > You have nothing to change or do server side. You'll have a client

side
>> .NET
>> > app that uses System.Net.WebC lient to post a file to the server side > page.
>> > You could also ask them for possible alternate methods (they may
>> > have
> FTP
>> > access ?)
>> >
>> > Patrice
>> > --
>> >
>> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> > news:ec******** ******@TK2MSFTN GP10.phx.gbl...
>> > > Thanx Patrice !!!
>> > >
>> > > But this app works on the Client.. and i dont have access to the > server
>> > > site... so.. i only can navigate their site and find out how to
>> > > put
> the
>> > path
>> > > on the file control !!!
>> > >
>> > > "Patrice" <no****@nowhere .com> wrote in message
>> > > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
>> > > > System.Net.WebC lient allows to upload a file to particular page. >> > > > See
>> the
>> > > SDK
>> > > > documentation for a sample.
>> > > >
>> > > > Patrice
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de >> > > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
>> > > > > Hi all.. here s my problem ( maybe some of you saw me on other >> groups,
>> > > but
>> > > > i
>> > > > > cant find the solution !! )
>> > > > >
>> > > > >
>> > > > > I have to upload a file to an external site, so, i made a ..vbs > file
>> ,
>> > > that
>> > > > > logins to the site, and then i have to select the file to
>> > > > > upload..
> i
>> > > used
>> > > > > sendkeys.. and i worked perfect.. BUT ... the computer must be >> locked
>> > > for
>> > > > > security ( obviusly ) reazons.. so..i think this probable
> solutions
>> to
>> > > > > unlock the computer and run the application .. or find
>> > > > > another way to fill the FILE control on that site...
>> > > > >
>> > > > > - I read some groups, and i found a SendMessage() function,

that
>> > sends
>> > > > > characters to an especific application, but dont know wich
> language
>> is
>> > > > it...
>> > > > > and if it runs on a locked computer.
>> > > > > - I can do the click on BROWSE button, but how can i select a > file
>> on
>> > > the
>> > > > > browse window ? ( without using SENDKEYS ) .. i can do a VB6
>> > application
>> > > > > that runs the URL in a webcontrol, but cannot acces to that
> BROWSER
>> > > window
>> > > > > right?
>> > > > > - Is there any browser with the security bug that i can
write in
>> the
>> > > > VALUE
>> > > > > property of the FILE control?? or is anyway to set that

security
> on
>> > > > > IExplorer?
>> > > > > - .NET .... is there anyway to do this in .NET (ASP.NET or
> VB.NET)
>> ?
>> > i
>> > > m
>> > > > > begginer but if it could be possible.. i learn .NET in one
>> > > > > hour
>> > > > > !!
>> > lol..
>> > > > >
>> > > > >
>> > > > > Any idea would be really help here..
>> > > > >
>> > > > > Thank you all.
>> > > > >
>> > > > > --
>> > > > > CHIN@KD
>> > > > > www.racingclub.com.ar
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>



Jul 21 '05 #18
I'm not following you. The Windows Form that you embed in the page doesn't
need to do anything with the WebForm it resides in. It just has to display
the dialog box, create the WebClient, and send it to its destination. If a
POST request is needed, the WebClient can do a POST.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:eT******** ******@tk2msftn gp13.phx.gbl...
Yes, i just try to acces a page with System.Net.Webc lient , simple.. and
done...
i have to login on the site frist.. so i imagine that i have to put a
webcontrol ( in VB6 was that name ) and navigate it right?

and i have to post the user and the pass to the ACTION of the form ..
right?

m i on the zone?? lol

tnx

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:es******** ******@TK2MSFTN GP14.phx.gbl...
Yes, if you use it in an embedded .Net Windows Form in the page.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:Ou******** ******@TK2MSFTN GP10.phx.gbl...
> Tnx Kevin... i can install framework on the client, but i have to post the > file to the https url , it is possible with System.Net.Webc lient ?
>
>
> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
> news:uV******** ******@TK2MSFTN GP10.phx.gbl...
>> > System.Net.WebC lient is used client side (NOT server side). It's
>> > purpose
>> > is
>> > to upload (POST) a file to a particular page. This is done client
> side...
>>
>> I'm afraid that's just not true, Patrice. System.Net.WebC lient is used
>> server-side in an ASP.Net application. It acts like a browser, sending
> HTTP
>> requests, and receiving HTTP responses. The HTML input type=file form
>> element is used for uploading files on the client. The server-side
>> ASP.Net
>> Control that creates the file upload form field on the client is
>> System.Web.UI.H tmlControls.Htm lInputFile.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> Neither a follower nor a lender be.
>>
>> "Patrice" <no****@nowhere .com> wrote in message
>> news:%2******** **********@TK2M SFTNGP12.phx.gb l...
>> > System.Net.WebC lient is used client side (NOT server side). It's
>> > purpose
>> > is
>> > to upload (POST) a file to a particular page. This is done client
> side...
>> >
>> > It should work. Check the documentation for this class and give it a
>> > try...
>> >
>> > Patrice
>> >
>> > --
>> >
>> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> > news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>> >> I have to do a batch process that replaces a guy and his clicks .. lol >> >>
>> >> there is no way to change or access the remote side code.. and no
>> >> other
>> > way
>> >> to do that loggin the page and posting the file..
>> >>
>> >> the page is like hotmail, u log in.. select New Mail.. attach a
>> >> file
>> >> ..
>> > and
>> >> then have to select the file... with System.Net.WebC lient, can i emule >> >> all
>> >> that? .. is possible the website knows if the file comes from
>> >> System.Net.WebC lient or from their form ?
>> >>
>> >> sorry for my english :p i m posting in japanesse groups !!! lol
>> >>
>> >> Thnx
>> >>
>> >>
>> >> "Patrice" <no****@nowhere .com> wrote in message
>> >> news:#4******** *****@TK2MSFTNG P14.phx.gbl...
>> >> > I'm not sure to have the whole picture. If I understood you are
>> >> > using
> a
>> >> web
>> >> > app that let's you upload a file. Instead of doing this yourself you >> > would
>> >> > like to have an app doing this for you ?
>> >> >
>> >> > You have nothing to change or do server side. You'll have a
>> >> > client
> side
>> >> .NET
>> >> > app that uses System.Net.WebC lient to post a file to the server side >> > page.
>> >> > You could also ask them for possible alternate methods (they may
>> >> > have
>> > FTP
>> >> > access ?)
>> >> >
>> >> > Patrice
>> >> > --
>> >> >
>> >> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> >> > news:ec******** ******@TK2MSFTN GP10.phx.gbl...
>> >> > > Thanx Patrice !!!
>> >> > >
>> >> > > But this app works on the Client.. and i dont have access to
>> >> > > the >> > server
>> >> > > site... so.. i only can navigate their site and find out how to
>> >> > > put
>> > the
>> >> > path
>> >> > > on the file control !!!
>> >> > >
>> >> > > "Patrice" <no****@nowhere .com> wrote in message
>> >> > > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
>> >> > > > System.Net.WebC lient allows to upload a file to particular page. >> >> > > > See
>> >> the
>> >> > > SDK
>> >> > > > documentation for a sample.
>> >> > > >
>> >> > > > Patrice
>> >> > > >
>> >> > > >
>> >> > > > --
>> >> > > >
>> >> > > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de >> >> > > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
>> >> > > > > Hi all.. here s my problem ( maybe some of you saw me on other >> >> groups,
>> >> > > but
>> >> > > > i
>> >> > > > > cant find the solution !! )
>> >> > > > >
>> >> > > > >
>> >> > > > > I have to upload a file to an external site, so, i made a .vbs >> > file
>> >> ,
>> >> > > that
>> >> > > > > logins to the site, and then i have to select the file to
>> >> > > > > upload..
>> > i
>> >> > > used
>> >> > > > > sendkeys.. and i worked perfect.. BUT ... the computer must be >> >> locked
>> >> > > for
>> >> > > > > security ( obviusly ) reazons.. so..i think this probable
>> > solutions
>> >> to
>> >> > > > > unlock the computer and run the application .. or find
>> >> > > > > another way to fill the FILE control on that site...
>> >> > > > >
>> >> > > > > - I read some groups, and i found a SendMessage()
>> >> > > > > function,
> that
>> >> > sends
>> >> > > > > characters to an especific application, but dont know wich
>> > language
>> >> is
>> >> > > > it...
>> >> > > > > and if it runs on a locked computer.
>> >> > > > > - I can do the click on BROWSE button, but how can i
>> >> > > > > select a >> > file
>> >> on
>> >> > > the
>> >> > > > > browse window ? ( without using SENDKEYS ) .. i can do a
>> >> > > > > VB6
>> >> > application
>> >> > > > > that runs the URL in a webcontrol, but cannot acces to that
>> > BROWSER
>> >> > > window
>> >> > > > > right?
>> >> > > > > - Is there any browser with the security bug that i can write > in
>> >> the
>> >> > > > VALUE
>> >> > > > > property of the FILE control?? or is anyway to set that
> security
>> > on
>> >> > > > > IExplorer?
>> >> > > > > - .NET .... is there anyway to do this in .NET (ASP.NET or
>> > VB.NET)
>> >> ?
>> >> > i
>> >> > > m
>> >> > > > > begginer but if it could be possible.. i learn .NET in one
>> >> > > > > hour
>> >> > > > > !!
>> >> > lol..
>> >> > > > >
>> >> > > > >
>> >> > > > > Any idea would be really help here..
>> >> > > > >
>> >> > > > > Thank you all.
>> >> > > > >
>> >> > > > > --
>> >> > > > > CHIN@KD
>> >> > > > > www.racingclub.com.ar
>> >> > > > >
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > > >
>> >> > >
>> >> > >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Jul 21 '05 #19
Sorry , i m a jerk, in know..

i m newbbie at .NET and i have to do it for yesterday... lol..

ok, so i have to create the WebClient object, get the URL , log in that page
( i think just do the post to the ACTION on the login form ), and then post
the file..

right??

thnx again !!
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:ew******** *****@TK2MSFTNG P15.phx.gbl...
I'm not following you. The Windows Form that you embed in the page doesn't
need to do anything with the WebForm it resides in. It just has to display
the dialog box, create the WebClient, and send it to its destination. If a
POST request is needed, the WebClient can do a POST.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:eT******** ******@tk2msftn gp13.phx.gbl...
Yes, i just try to acces a page with System.Net.Webc lient , simple.. and
done...
i have to login on the site frist.. so i imagine that i have to put a
webcontrol ( in VB6 was that name ) and navigate it right?

and i have to post the user and the pass to the ACTION of the form ..
right?

m i on the zone?? lol

tnx

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:es******** ******@TK2MSFTN GP14.phx.gbl...
Yes, if you use it in an embedded .Net Windows Form in the page.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:Ou******** ******@TK2MSFTN GP10.phx.gbl...
> Tnx Kevin... i can install framework on the client, but i have to post
the
> file to the https url , it is possible with System.Net.Webc lient ?
>
>
> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
> news:uV******** ******@TK2MSFTN GP10.phx.gbl...
>> > System.Net.WebC lient is used client side (NOT server side). It's
>> > purpose
>> > is
>> > to upload (POST) a file to a particular page. This is done client
> side...
>>
>> I'm afraid that's just not true, Patrice. System.Net.WebC lient is
used >> server-side in an ASP.Net application. It acts like a browser, sending > HTTP
>> requests, and receiving HTTP responses. The HTML input type=file form >> element is used for uploading files on the client. The server-side
>> ASP.Net
>> Control that creates the file upload form field on the client is
>> System.Web.UI.H tmlControls.Htm lInputFile.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> Neither a follower nor a lender be.
>>
>> "Patrice" <no****@nowhere .com> wrote in message
>> news:%2******** **********@TK2M SFTNGP12.phx.gb l...
>> > System.Net.WebC lient is used client side (NOT server side). It's
>> > purpose
>> > is
>> > to upload (POST) a file to a particular page. This is done client
> side...
>> >
>> > It should work. Check the documentation for this class and give it a >> > try...
>> >
>> > Patrice
>> >
>> > --
>> >
>> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> > news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>> >> I have to do a batch process that replaces a guy and his clicks ... lol
>> >>
>> >> there is no way to change or access the remote side code.. and no
>> >> other
>> > way
>> >> to do that loggin the page and posting the file..
>> >>
>> >> the page is like hotmail, u log in.. select New Mail.. attach a
>> >> file
>> >> ..
>> > and
>> >> then have to select the file... with System.Net.WebC lient, can i

emule
>> >> all
>> >> that? .. is possible the website knows if the file comes from
>> >> System.Net.WebC lient or from their form ?
>> >>
>> >> sorry for my english :p i m posting in japanesse groups !!! lol
>> >>
>> >> Thnx
>> >>
>> >>
>> >> "Patrice" <no****@nowhere .com> wrote in message
>> >> news:#4******** *****@TK2MSFTNG P14.phx.gbl...
>> >> > I'm not sure to have the whole picture. If I understood you are
>> >> > using
> a
>> >> web
>> >> > app that let's you upload a file. Instead of doing this
yourself you
>> > would
>> >> > like to have an app doing this for you ?
>> >> >
>> >> > You have nothing to change or do server side. You'll have a
>> >> > client
> side
>> >> .NET
>> >> > app that uses System.Net.WebC lient to post a file to the server

side
>> > page.
>> >> > You could also ask them for possible alternate methods (they
may >> >> > have
>> > FTP
>> >> > access ?)
>> >> >
>> >> > Patrice
>> >> > --
>> >> >
>> >> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de >> >> > news:ec******** ******@TK2MSFTN GP10.phx.gbl...
>> >> > > Thanx Patrice !!!
>> >> > >
>> >> > > But this app works on the Client.. and i dont have access to
>> >> > > the

>> > server
>> >> > > site... so.. i only can navigate their site and find out how to >> >> > > put
>> > the
>> >> > path
>> >> > > on the file control !!!
>> >> > >
>> >> > > "Patrice" <no****@nowhere .com> wrote in message
>> >> > > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
>> >> > > > System.Net.WebC lient allows to upload a file to particular

page.
>> >> > > > See
>> >> the
>> >> > > SDK
>> >> > > > documentation for a sample.
>> >> > > >
>> >> > > > Patrice
>> >> > > >
>> >> > > >
>> >> > > > --
>> >> > > >
>> >> > > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> >> > > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
>> >> > > > > Hi all.. here s my problem ( maybe some of you saw me on

other
>> >> groups,
>> >> > > but
>> >> > > > i
>> >> > > > > cant find the solution !! )
>> >> > > > >
>> >> > > > >
>> >> > > > > I have to upload a file to an external site, so, i made a

.vbs
>> > file
>> >> ,
>> >> > > that
>> >> > > > > logins to the site, and then i have to select the file to
>> >> > > > > upload..
>> > i
>> >> > > used
>> >> > > > > sendkeys.. and i worked perfect.. BUT ... the computer
must be
>> >> locked
>> >> > > for
>> >> > > > > security ( obviusly ) reazons.. so..i think this probable
>> > solutions
>> >> to
>> >> > > > > unlock the computer and run the application .. or find
>> >> > > > > another way to fill the FILE control on that site...
>> >> > > > >
>> >> > > > > - I read some groups, and i found a SendMessage()
>> >> > > > > function,
> that
>> >> > sends
>> >> > > > > characters to an especific application, but dont know

wich >> > language
>> >> is
>> >> > > > it...
>> >> > > > > and if it runs on a locked computer.
>> >> > > > > - I can do the click on BROWSE button, but how can i
>> >> > > > > select

a
>> > file
>> >> on
>> >> > > the
>> >> > > > > browse window ? ( without using SENDKEYS ) .. i can do a
>> >> > > > > VB6
>> >> > application
>> >> > > > > that runs the URL in a webcontrol, but cannot acces to that >> > BROWSER
>> >> > > window
>> >> > > > > right?
>> >> > > > > - Is there any browser with the security bug that i can

write
> in
>> >> the
>> >> > > > VALUE
>> >> > > > > property of the FILE control?? or is anyway to set that
> security
>> > on
>> >> > > > > IExplorer?
>> >> > > > > - .NET .... is there anyway to do this in .NET (ASP.NET or >> > VB.NET)
>> >> ?
>> >> > i
>> >> > > m
>> >> > > > > begginer but if it could be possible.. i learn .NET in one >> >> > > > > hour
>> >> > > > > !!
>> >> > lol..
>> >> > > > >
>> >> > > > >
>> >> > > > > Any idea would be really help here..
>> >> > > > >
>> >> > > > > Thank you all.
>> >> > > > >
>> >> > > > > --
>> >> > > > > CHIN@KD
>> >> > > > > www.racingclub.com.ar
>> >> > > > >
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > > >
>> >> > >
>> >> > >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Jul 21 '05 #20

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

Similar topics

20
1349
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to the site, and then i have to select the file to upload.. i used sendkeys.. and i worked perfect.. BUT ... the computer must be locked for security ( obviusly ) reazons.. so..i think this probable solutions to unlock the computer and run the...
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9420
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8863
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7401
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.