473,779 Members | 2,083 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

Nov 19 '05
20 1351
You would need an ActiveX control or Java applet to do this.

--
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
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 19 '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
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 19 '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
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 19 '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
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>



Nov 19 '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
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 19 '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
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 19 '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
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>



Nov 19 '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
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>



Nov 19 '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
>> >> > > > >
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > > >
>> >> > >
>> >> > >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 19 '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
>> >> > > > >
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > > >
>> >> > >
>> >> > >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 19 '05 #20

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

Similar topics

20
2515
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
9633
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
10305
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...
1
10074
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
9928
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7483
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
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.