how to call aspx page in windows application to upload file on server

Posted by RohiK under Others on 1/25/2011 | Points: 10 | Views : 4445 | Status : [Member] | Replies : 7
Hi all,

as you know i am trying to create windows application to upload file on server.
but as I come to know it's no longer possible with only windows application.
I need to call any aspx page in that.
but I really don't aware about it.. how to go through that?
how to call aspx page? how to send values? how to upload that file ?

please help

Happy Programming!!
Rohi



Responses

Posted by: Prabhakar on: 1/25/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi rohik

why u attach aspx page in window application for uploading file . without aspx page u upload ur file in window application

Check this URL
http://www.vb-helper.com/howto_sync_upload.html

Thanks & Regard's
Prabhakar

Best Regard's
Prabhakar

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/25/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi Rohik,

U can use the webclient class in windows application which do the same functionality like web application u can upload files... Please refer to the MSDN library for details.

WebClient Class
http://msdn2.microsoft.com/en-us/library/system.net.webclient(VS.80).aspx

WebClient.UploadFile Method
http://msdn2.microsoft.com/en-us/library/system.net.webclient.uploadfile(VS.80).aspx

WebClient.UploadFile Method (String, String)
http://msdn2.microsoft.com/en-us/library/36s52zhs(VS.80).aspx



Thanks
Karthik
www.f5Debug.net

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 1/25/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Strange Requirement , You want to use a web app Upload Control because you dont know how to upload in your win app ?

Thank you for posting at Dotnetfunda
[Administrator]

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RohiK on: 1/25/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

yes this is strange requirement. but I need to do this because in my web page there are 90 image uploads. on single button on same page
to speed up this process I have created windows multithreading application. by which 2 threads working 1 for checking how many queued images(waiting for upload) and other thead uploading images as they queued up.
so for uploading files on server I need aspx page.

I tried by using webclient also. but it's not feasible one and our client requirement is different one.
may be I still not understand it little bit. but if anybody tried this or any other application like this then please welcome !




Happy Programming!!
Rohi

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/25/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Wot problem are u getting with webclient?

Thanks
Karthik
www.f5Debug.net

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RohiK on: 1/28/2011 [Member] Starter | Points: 25

Up
0
Down
Firewall problem

Happy Programming!!
Rohi

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/28/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
ok fine rohi... let me check an alternate and get u

Thanks
Karthik
www.f5Debug.net

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response